Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Medic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
Medic
Commits
9b475700
Commit
9b475700
authored
May 21, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding view models
parent
e56ba2ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
LoginInuptModel.cs
ApplicationCore/ViewModel/LoginInuptModel.cs
+25
-0
PateintMedicineViewModel.cs
ApplicationCore/ViewModel/PateintMedicineViewModel.cs
+17
-0
RegisterationInputModel.cs
ApplicationCore/ViewModel/RegisterationInputModel.cs
+30
-0
No files found.
ApplicationCore/ViewModel/LoginInuptModel.cs
0 → 100644
View file @
9b475700
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel.DataAnnotations
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
cleanArchWebApp.ApplicationCore.ViewModels
{
public
class
LoginInuptModel
{
[
Required
]
[
EmailAddress
]
public
string
Email
{
get
;
set
;
}
[
Required
]
[
DataType
(
DataType
.
Password
)]
public
string
Password
{
get
;
set
;
}
[
Display
(
Name
=
"Remember me?"
)]
public
bool
RememberMe
{
get
;
set
;
}
}
}
ApplicationCore/ViewModel/PateintMedicineViewModel.cs
0 → 100644
View file @
9b475700
using
ApplicationCore.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.ViewModel
{
public
class
PateintMedicineViewModel
{
public
Patient
Patien
{
get
;
set
;
}
public
IEnumerable
<
Medicine
>
Medicines
{
get
;
set
;
}
}
}
ApplicationCore/ViewModel/RegisterationInputModel.cs
0 → 100644
View file @
9b475700
using
ApplicationCore.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel.DataAnnotations
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
cleanArchWebApp.ApplicationCore.Aggregate
{
public
class
RegisterationInputModel
{
[
Required
]
[
EmailAddress
]
[
Display
(
Name
=
"Email"
)]
public
string
Email
{
get
;
set
;
}
[
Required
]
public
Patient
Patient
{
get
;
set
;
}
[
Required
]
[
StringLength
(
100
,
ErrorMessage
=
"The {0} must be at least {2} and at max {1} characters long."
,
MinimumLength
=
3
)]
[
DataType
(
DataType
.
Password
)]
[
Display
(
Name
=
"Password"
)]
public
string
Password
{
get
;
set
;
}
[
DataType
(
DataType
.
Password
)]
[
Display
(
Name
=
"Confirm password"
)]
[
Compare
(
"Password"
,
ErrorMessage
=
"The password and confirmation password do not match."
)]
public
string
ConfirmPassword
{
get
;
set
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment