Last change
on this file since dae4cde was 0a694bb, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 4 years ago |
Fix create new user bug.
|
-
Property mode
set to
100644
|
File size:
849 bytes
|
Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using System.ComponentModel.DataAnnotations;
|
---|
3 | using System.Text.Json.Serialization;
|
---|
4 | using FarmatikoData.Base;
|
---|
5 | using Newtonsoft.Json;
|
---|
6 |
|
---|
7 | namespace FarmatikoData.Models
|
---|
8 | {
|
---|
9 | public class PharmacyHead : BaseEntity
|
---|
10 | {
|
---|
11 | public PharmacyHead()
|
---|
12 | {
|
---|
13 | }
|
---|
14 | [Required]
|
---|
15 | [JsonProperty("Email")]
|
---|
16 | public string Email { get; set; }
|
---|
17 | [Required]
|
---|
18 | [JsonProperty("Name")]
|
---|
19 | public string Name { get; set; }
|
---|
20 | [Required]
|
---|
21 | [JsonProperty("Passwd")]
|
---|
22 | public string Password { get; set; }
|
---|
23 | [JsonProperty("PharmacyList")]
|
---|
24 | public virtual List<Pharmacy> Pharmacies { get; set; }
|
---|
25 | public virtual List<PharmacyHeadMedicine> Medicines { get; set; }
|
---|
26 |
|
---|
27 | public int UserID { get; set; }
|
---|
28 | public User User { get; set; }
|
---|
29 |
|
---|
30 |
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.