source: FarmatikoData/Models/PharmacyHead.cs@ 8e74e2f

Last change on this file since 8e74e2f was 8e74e2f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Fix bugs, add some more.

  • Property mode set to 100644
File size: 916 bytes
Line 
1using System.Collections.Generic;
2using System.ComponentModel.DataAnnotations;
3using System.Text.Json.Serialization;
4using FarmatikoData.Base;
5using Newtonsoft.Json;
6
7namespace 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
24 [JsonProperty("PharmacyMedicines")]
25 public List<Medicine> MedicineList { get; set; }
26 [JsonProperty("Pharmacy")]
27 public ICollection<Pharmacy> PharmaciesList { get; set; }
28 //[JsonProperty("PHMedicineList")]
29 public ICollection<PharmacyHeadMedicine> PHMedicineList { get; set; }
30
31 }
32}
Note: See TracBrowser for help on using the repository browser.