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
2ce70ae7
Commit
2ce70ae7
authored
May 31, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add spcification
parent
68b48a2c
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
344 additions
and
32 deletions
+344
-32
ApplicationCore.csproj
ApplicationCore/ApplicationCore.csproj
+0
-7
EntityBase.cs
ApplicationCore/Entities/Base/EntityBase.cs
+1
-0
User.cs
ApplicationCore/Entities/Identity Entitis/User.cs
+3
-1
Patient.cs
ApplicationCore/Entities/Patient.cs
+3
-3
IGenericRepository.cs
ApplicationCore/Interfaces/IRspository/IGenericRepository.cs
+4
-3
IUnitOfWork.cs
ApplicationCore/Interfaces/IRspository/IUnitOfWork.cs
+0
-0
IIngredientService.cs
ApplicationCore/Interfaces/IServices/IIngredientService.cs
+18
-0
IMedicineService.cs
ApplicationCore/Interfaces/IServices/IMedicineService.cs
+22
-0
IPatientService.cs
ApplicationCore/Interfaces/IServices/IPatientService.cs
+25
-0
ISpecification.cs
ApplicationCore/Interfaces/ISpecification/ISpecification.cs
+19
-0
IngredientService.cs
...ationCore/Services/IngredientService/IngredientService.cs
+5
-4
MedicineService.cs
ApplicationCore/Services/MedicineService/MedicineService.cs
+15
-11
PatientService.cs
ApplicationCore/Services/PatientService/PatientService.cs
+100
-0
BaseSpecification.cs
...Core/Specification/BaseSpecification/BaseSpecification.cs
+42
-0
IngredientSpecification.cs
ApplicationCore/Specification/IngredientSpecification.cs
+25
-0
MedicineIngredientSpecification.cs
...tionCore/Specification/MedicineIngredientSpecification.cs
+28
-0
PatientMedicinesSpecification.cs
...cationCore/Specification/PatientMedicinesSpecification.cs
+22
-0
LoginInuptModel.cs
ApplicationCore/ViewModel/LoginInuptModel.cs
+2
-2
RegisterationInputModel.cs
ApplicationCore/ViewModel/RegisterationInputModel.cs
+10
-1
ApplicationCore.csproj.AssemblyReference.cache
...bug/net5.0/ApplicationCore.csproj.AssemblyReference.cache
+0
-0
No files found.
ApplicationCore/ApplicationCore.csproj
View file @
2ce70ae7
...
...
@@ -4,13 +4,6 @@
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="Interfaces\IServices\" />
<Folder Include="Services\Ingredient\" />
<Folder Include="Specification\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.17">
...
...
ApplicationCore/Entities/Base/EntityBase.cs
View file @
2ce70ae7
...
...
@@ -13,5 +13,6 @@ namespace ApplicationCore.Entities
[
DatabaseGenerated
(
DatabaseGeneratedOption
.
Identity
)]
public
int
Id
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Identity Entitis/User.cs
View file @
2ce70ae7
...
...
@@ -5,8 +5,10 @@ namespace ApplicationCore.Entities
public
class
User
:
IdentityUser
{
public
DateTime
CreationTime
{
get
;
set
;
}
public
String
FirstName
{
get
;
set
;
}
public
String
LastName
{
get
;
set
;
}
public
String
Avatar
{
get
;
set
;
}
public
int
PatientId
{
get
;
set
;
}
public
Patient
Patient
{
get
;
set
;
}
}
}
ApplicationCore/Entities/Patient.cs
View file @
2ce70ae7
...
...
@@ -8,9 +8,9 @@ namespace ApplicationCore.Entities
{
public
class
Patient
:
EntityBase
{
public
String
FirstName
{
get
;
set
;
}
public
String
LastName
{
get
;
set
;
}
public
String
Avatar
{
get
;
set
;
}
public
String
UserId
{
get
;
set
;
}
public
User
User
{
get
;
set
;
}
public
String
BIO
{
get
;
set
;
}
public
ICollection
<
Medicine
>
Medicines
{
get
;
set
;
}
...
...
ApplicationCore/Interfaces/IGenericRepository.cs
→
ApplicationCore/Interfaces/I
Rspository/I
GenericRepository.cs
View file @
2ce70ae7
using
System
;
using
ApplicationCore.Interfaces.ISpecification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
...
...
@@ -12,9 +13,9 @@ namespace ApplicationCore.Interfaces
public
T
Update
(
T
entities
);
public
T
Insert
(
T
entities
);
public
T
GetById
(
int
id
,
params
Expression
<
Func
<
T
,
object
>>[]
includeProperties
);
public
T
GetById
(
int
id
,
ISpecification
<
T
>?
specification
=
null
);
public
void
Delete
(
int
id
);
public
IEnumerable
<
T
>
GetAll
(
params
Expression
<
Func
<
T
,
object
>>[]
includeProperties
);
public
IEnumerable
<
T
>
GetAll
(
ISpecification
<
T
>
specification
);
}
}
ApplicationCore/Interfaces/IUnitOfWork.cs
→
ApplicationCore/Interfaces/I
Rspository/I
UnitOfWork.cs
View file @
2ce70ae7
File moved
ApplicationCore/Interfaces/IServices/IIngredientService.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Interfaces.IServices
{
public
interface
IIngredientService
{
public
IEnumerable
<
Ingredient
>
GetAllIngredients
();
public
void
AddIngredient
(
Ingredient
ingredient
);
public
Ingredient
Update
(
Ingredient
ingredient
);
public
Ingredient
GetIngredientDetails
(
int
id
);
public
void
Delete
(
int
id
);
}
}
ApplicationCore/Interfaces/IServices/IMedicineService.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Interfaces.IServices
{
public
interface
IMedicineService
{
public
IEnumerable
<
Medicine
>
GetAllMedicines
();
public
void
AddMedicine
(
Medicine
medicine
);
public
void
AddMedicineIngredient
(
int
medicineId
,
Ingredient
ingredient
);
public
Medicine
Update
(
Medicine
medicine
);
public
Medicine
GetMedicineDetails
(
int
id
);
public
Medicine
GetMedicineIngredentisDetails
(
int
medicineId
);
public
void
AddIngredient
(
int
medicineId
,
int
ratio
,
Ingredient
ingredient
);
public
void
Delete
(
int
id
);
}
}
ApplicationCore/Interfaces/IServices/IPatientService.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Interfaces.IServices
{
public
interface
IPatientService
{
public
IEnumerable
<
Medicine
>
GetPatientMedicines
(
int
patientId
);
public
Medicine
GetMedicineDetails
(
int
id
,
params
Expression
<
Func
<
Medicine
,
object
>>[]
includeProperties
);
public
IEnumerable
<
Patient
>
GetAll
(
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
);
public
void
AddMedicine
(
int
patientId
,
Medicine
medicine
);
public
Patient
GetById
(
int
id
,
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
);
public
void
Insert
(
Patient
owner
);
public
void
Update
(
Patient
owner
);
public
void
Delete
(
int
id
);
public
bool
PatientExists
(
int
id
);
}
}
ApplicationCore/Interfaces/ISpecification/ISpecification.cs
0 → 100644
View file @
2ce70ae7
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Interfaces.ISpecification
{
public
interface
ISpecification
<
T
>
where
T
:
class
{
Expression
<
Func
<
T
,
bool
>>
Criteria
{
get
;
}
List
<
Expression
<
Func
<
T
,
object
>>>
Includes
{
get
;
}
List
<
String
>
ThenInclude
{
get
;
}
Expression
<
Func
<
T
,
object
>>
OrderBy
{
get
;
}
Expression
<
Func
<
T
,
object
>>
OrderByDescending
{
get
;
}
}
}
ApplicationCore/Services/IngredientService/IngredientService.cs
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Interfaces
;
using
ApplicationCore.Specification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
...
...
@@ -11,15 +12,17 @@ namespace ApplicationCore.Services.IngredientService
public
class
IngredientService
{
private
readonly
IUnitOfWork
<
Ingredient
>
_ingredientUnitOfWork
;
private
IngredientSpecification
_IngredientSpecification
;
public
IngredientService
(
IUnitOfWork
<
Ingredient
>
ingredientUnitOfWork
)
{
_ingredientUnitOfWork
=
ingredientUnitOfWork
;
_IngredientSpecification
=
new
IngredientSpecification
();
}
public
IEnumerable
<
Ingredient
>
GetAllIngredients
()
{
return
_ingredientUnitOfWork
.
Entity
.
GetAll
(
p
=>
p
.
MedicineIngredients
_IngredientSpecification
);
}
public
void
AddIngredient
(
Ingredient
ingredient
)
...
...
@@ -41,9 +44,7 @@ namespace ApplicationCore.Services.IngredientService
{
return
_ingredientUnitOfWork
.
Entity
.
GetById
(
id
,
i
=>
i
.
MedicineIngredients
,
i
=>
i
.
Medicines
);
_IngredientSpecification
);
}
public
void
Delete
(
int
id
)
...
...
ApplicationCore/Services/MedicineService/MedicineService.cs
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Interfaces
;
using
ApplicationCore.Specification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
...
...
@@ -11,16 +12,15 @@ namespace ApplicationCore.Services.MedicineService
public
class
MedicineService
{
private
readonly
IUnitOfWork
<
Medicine
>
_medicineUnitOfWork
;
private
MedicineIngredientSpecification
_medicineIngredientSpecification
;
public
MedicineService
(
IUnitOfWork
<
Medicine
>
medicineUnitOfWork
)
{
_medicineUnitOfWork
=
medicineUnitOfWork
;
_medicineIngredientSpecification
=
new
MedicineIngredientSpecification
();
}
public
IEnumerable
<
Medicine
>
GetAllMedicines
()
{
return
_medicineUnitOfWork
.
Entity
.
GetAll
(
p
=>
p
.
Category
,
p
=>
p
.
Ingredients
,
p
=>
p
.
Patients
_medicineIngredientSpecification
);
}
public
void
AddMedicine
(
Medicine
medicine
)
{
...
...
@@ -31,7 +31,7 @@ namespace ApplicationCore.Services.MedicineService
}
public
void
AddMedicineIngredient
(
int
medicineId
,
Ingredient
ingredient
)
{
var
s
=
_medicineUnitOfWork
.
Entity
.
GetById
(
medicineId
,
p
=>
p
.
Ingredients
);
var
s
=
_medicineUnitOfWork
.
Entity
.
GetById
(
medicineId
,
_medicineIngredientSpecification
);
s
.
Ingredients
.
Add
(
ingredient
);
_medicineUnitOfWork
.
Entity
.
Update
(
s
);
_medicineUnitOfWork
.
Save
();
...
...
@@ -47,19 +47,23 @@ namespace ApplicationCore.Services.MedicineService
public
Medicine
GetMedicineDetails
(
int
id
)
{
return
_medicineUnitOfWork
.
Entity
.
GetById
(
id
,
i
=>
i
.
MedicineIngredients
,
i
=>
i
.
Ingredients
,
c
=>
c
.
Category
);
return
_medicineUnitOfWork
.
Entity
.
GetById
(
id
,
_medicineIngredientSpecification
);
}
public
Medicine
GetMedicineIngredentisDetails
(
int
medicineId
)
{
return
_medicineUnitOfWork
.
Entity
.
GetById
(
medicineId
,
i
=>
i
.
MedicineIngredients
,
i
=>
i
.
Ingredients
,
c
=>
c
.
Category
);
_medicineIngredientSpecification
);
}
public
void
AddIngredient
(
int
medicineId
,
int
ratio
,
Ingredient
ingredient
)
{
var
m
=
GetMedicineIngredentisDetails
(
medicineId
);
if
(
ingredient
.
Id
!=
0
)
foreach
(
var
i
in
m
.
Ingredients
)
{
if
(
i
.
Id
.
Equals
(
ingredient
.
Id
))
return
;
}
m
.
AddIngredient
(
ingredient
,
ratio
);
_medicineUnitOfWork
.
Entity
.
Update
(
m
);
_medicineUnitOfWork
.
Save
();
...
...
ApplicationCore/Services/Patient/PatientService.cs
→
ApplicationCore/Services/Patient
Service
/PatientService.cs
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Interfaces
;
using
ApplicationCore.Interfaces.IServices
;
using
ApplicationCore.Specification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
...
...
@@ -9,44 +11,64 @@ using System.Threading.Tasks;
namespace
ApplicationCore.Services.PatientService
{
public
class
PatientService
public
class
PatientService
:
IPatientService
{
private
readonly
IUnitOfWork
<
Patient
>
_patientUnitOfWork
;
private
readonly
IUnitOfWork
<
Medicine
>
_medicineUnitOfWork
;
private
PatientMedicinesSpecification
_patientMedicinesSpecification
;
private
MedicineIngredientSpecification
_medicineIngredientSpecification
;
public
PatientService
(
IUnitOfWork
<
Patient
>
patientUnitOfWork
,
IUnitOfWork
<
Medicine
>
medicineUnitOfWork
)
{
_patientUnitOfWork
=
patientUnitOfWork
;
_medicineUnitOfWork
=
medicineUnitOfWork
;
_patientMedicinesSpecification
=
new
PatientMedicinesSpecification
();
_medicineIngredientSpecification
=
new
MedicineIngredientSpecification
();
}
public
IEnumerable
<
Medicine
>
GetPatientMedicines
(
int
patientId
)
{
return
_patientUnitOfWork
.
Entity
.
GetById
(
patientId
,
p
=>
p
.
Medicines
).
Medicines
.
AsEnumerable
();
return
_patientUnitOfWork
.
Entity
.
GetById
(
patientId
,
_patientMedicinesSpecification
).
Medicines
.
AsEnumerable
();
}
public
Medicine
GetMedicineDetails
(
int
id
,
params
Expression
<
Func
<
Medicine
,
object
>>[]
includeProperties
)
{
return
_medicineUnitOfWork
.
Entity
.
GetById
(
id
,
includeProperties
);
return
_medicineUnitOfWork
.
Entity
.
GetById
(
id
,
_medicineIngredientSpecification
);
}
public
IEnumerable
<
Patient
>
g
etAll
(
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
)
{
return
_patientUnitOfWork
.
Entity
.
GetAll
(
includeProperties
);
public
IEnumerable
<
Patient
>
G
etAll
(
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
)
{
return
_patientUnitOfWork
.
Entity
.
GetAll
(
_patientMedicinesSpecification
);
}
public
void
AddMedicine
(
int
patientId
,
Medicine
medicine
)
{
var
ptient
=
_patientUnitOfWork
.
Entity
.
GetById
(
patientId
);
var
ptient
=
_patientUnitOfWork
.
Entity
.
GetById
(
patientId
,
_patientMedicinesSpecification
);
if
(
medicine
.
Id
!=
0
)
ptient
.
Medicines
.
Add
(
medicine
);
foreach
(
var
i
in
ptient
.
Medicines
)
{
if
(
i
.
Id
.
Equals
(
medicine
.
Id
))
return
;
}
ptient
.
PatientMedicines
.
Add
(
new
PatientMedicine
{
Medicine
=
medicine
,
Patient
=
ptient
,
PrescripDate
=
DateTime
.
Now
});
_patientUnitOfWork
.
Entity
.
Update
(
ptient
);
_patientUnitOfWork
.
Save
();
}
public
Patient
g
etById
(
int
id
,
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
)
public
Patient
G
etById
(
int
id
,
params
Expression
<
Func
<
Patient
,
object
>>[]
includeProperties
)
{
return
_patientUnitOfWork
.
Entity
.
GetById
(
id
,
includeProperties
);
return
_patientUnitOfWork
.
Entity
.
GetById
(
id
,
_patientMedicinesSpecification
);
}
public
void
i
nsert
(
Patient
owner
)
public
void
I
nsert
(
Patient
owner
)
{
_patientUnitOfWork
.
Entity
.
Insert
(
owner
);
...
...
@@ -54,21 +76,21 @@ namespace ApplicationCore.Services.PatientService
_patientUnitOfWork
.
Save
();
}
public
void
u
pdate
(
Patient
owner
)
public
void
U
pdate
(
Patient
owner
)
{
_patientUnitOfWork
.
Entity
.
Update
(
owner
);
_patientUnitOfWork
.
Save
();
}
public
void
d
elete
(
int
id
)
public
void
D
elete
(
int
id
)
{
_patientUnitOfWork
.
Entity
.
Delete
(
id
);
_patientUnitOfWork
.
Save
();
}
public
bool
owner
Exists
(
int
id
)
public
bool
Patient
Exists
(
int
id
)
{
return
_patientUnitOfWork
.
Entity
.
GetById
(
id
)
is
null
?
false
:
true
;
}
...
...
ApplicationCore/Specification/BaseSpecification/BaseSpecification.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Interfaces.ISpecification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Specification.BaseSpecification
{
public
class
BaseSpecification
<
T
>
:
ISpecification
<
T
>
where
T
:
class
{
protected
BaseSpecification
(
Expression
<
Func
<
T
,
bool
>>
criteria
=
null
)
{
Criteria
=
criteria
;
}
public
Expression
<
Func
<
T
,
bool
>>
Criteria
{
get
;
}
public
List
<
Expression
<
Func
<
T
,
object
>>>
Includes
{
get
;
}
=
new
List
<
Expression
<
Func
<
T
,
object
>>>();
public
List
<
String
>
ThenInclude
{
get
;
}
=
new
List
<
String
>();
public
Expression
<
Func
<
T
,
object
>>
OrderBy
{
get
;
private
set
;
}
public
Expression
<
Func
<
T
,
object
>>
OrderByDescending
{
get
;
private
set
;
}
protected
virtual
void
AddInclude
(
Expression
<
Func
<
T
,
object
>>
includeExpression
)
{
Includes
.
Add
(
includeExpression
);
}
protected
virtual
void
AddThenInclude
(
String
include
)
{
ThenInclude
.
Add
(
include
);
}
protected
virtual
void
ApplyOrderBy
(
Expression
<
Func
<
T
,
object
>>
orderByExpression
)
{
OrderBy
=
orderByExpression
;
}
protected
virtual
void
ApplyOrderByDescending
(
Expression
<
Func
<
T
,
object
>>
orderByDescendingExpression
)
{
OrderByDescending
=
orderByDescendingExpression
;
}
}
}
ApplicationCore/Specification/IngredientSpecification.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Specification.BaseSpecification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Specification
{
public
class
IngredientSpecification
:
BaseSpecification
<
Ingredient
>
{
public
IngredientSpecification
()
{
AddInclude
(
p
=>
p
.
MedicineIngredients
);
AddInclude
(
p
=>
p
.
Medicines
);
}
}
}
ApplicationCore/Specification/MedicineIngredientSpecification.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Specification.BaseSpecification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Specification
{
public
class
MedicineIngredientSpecification
:
BaseSpecification
<
Medicine
>
{
public
MedicineIngredientSpecification
(
)
{
AddInclude
(
p
=>
p
.
MedicineIngredients
);
AddInclude
(
p
=>
p
.
Category
);
AddInclude
(
p
=>
p
.
MedicineType
);
AddInclude
(
p
=>
p
.
Patients
);
AddInclude
(
p
=>
p
.
Ingredients
);
AddThenInclude
(
"MedicineIngredients.Ingredient"
);
}
}
}
ApplicationCore/Specification/PatientMedicinesSpecification.cs
0 → 100644
View file @
2ce70ae7
using
ApplicationCore.Entities
;
using
ApplicationCore.Specification.BaseSpecification
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Specification
{
public
class
PatientMedicinesSpecification
:
BaseSpecification
<
Patient
>
{
public
PatientMedicinesSpecification
()
{
AddInclude
(
p
=>
p
.
Medicines
);
AddInclude
(
p
=>
p
.
User
);
AddInclude
(
p
=>
p
.
PatientMedicines
);
}
}
}
ApplicationCore/ViewModel/LoginInuptModel.cs
View file @
2ce70ae7
...
...
@@ -5,7 +5,7 @@ using System.Linq;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
cleanArchWebApp.ApplicationCore.ViewModels
namespace
ApplicationCore.ViewModel
{
public
class
LoginInuptModel
{
...
...
@@ -20,6 +20,6 @@ namespace cleanArchWebApp.ApplicationCore.ViewModels
[
Display
(
Name
=
"Remember me?"
)]
public
bool
RememberMe
{
get
;
set
;
}
public
String
ReturnUrl
{
get
;
set
;
}
}
}
ApplicationCore/ViewModel/RegisterationInputModel.cs
View file @
2ce70ae7
...
...
@@ -6,7 +6,7 @@ using System.Linq;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
cleanArchWebApp.ApplicationCore.Aggregate
namespace
ApplicationCore.ViewModel
{
public
class
RegisterationInputModel
{
...
...
@@ -14,6 +14,14 @@ namespace cleanArchWebApp.ApplicationCore.Aggregate
[
EmailAddress
]
[
Display
(
Name
=
"Email"
)]
public
string
Email
{
get
;
set
;
}
[
Required
]
public
string
FirstName
{
get
;
set
;
}
[
Required
]
public
string
LastName
{
get
;
set
;
}
public
string
Avatar
{
get
;
set
;
}
[
Required
]
public
Patient
Patient
{
get
;
set
;
}
[
Required
]
...
...
@@ -26,5 +34,6 @@ namespace cleanArchWebApp.ApplicationCore.Aggregate
[
Display
(
Name
=
"Confirm password"
)]
[
Compare
(
"Password"
,
ErrorMessage
=
"The password and confirmation password do not match."
)]
public
string
ConfirmPassword
{
get
;
set
;
}
public
string
ReturnUrl
{
get
;
set
;
}
}
}
ApplicationCore/obj/Debug/net5.0/ApplicationCore.csproj.AssemblyReference.cache
View file @
2ce70ae7
No preview for this file type
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