Changeset 1db5673 for FarmatikoData/Models
- Timestamp:
- 11/14/20 12:27:30 (4 years ago)
- Branches:
- master
- Children:
- 68454c6
- Parents:
- ad60966
- Location:
- FarmatikoData/Models
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Models/Medicine.cs
rad60966 r1db5673 1 1 using FarmatikoData.Base; 2 using System.Collections; 3 using System.Collections.Generic; 2 4 using System.ComponentModel.DataAnnotations; 5 using System.Diagnostics.CodeAnalysis; 6 using System.Text.Json.Serialization; 3 7 4 8 namespace FarmatikoData.Models … … 18 22 public float Price { get; set; } 19 23 public string Packaging { get; set; } 24 //[JsonPropertyName("PHMedicineList")] 25 public ICollection<PharmacyHeadMedicine> MedicineList { get; set; } 20 26 public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging) 21 27 { … … 28 34 this.Packaging = Packaging; 29 35 } 30 31 36 } 32 37 } -
FarmatikoData/Models/Pharmacy.cs
rad60966 r1db5673 26 26 this.WorkAllTime = WorkAllTime; 27 27 } 28 public int PheadId { get; set; } 29 public PharmacyHead PHead { get; set; } 28 30 } 29 31 } -
FarmatikoData/Models/PharmacyHead.cs
rad60966 r1db5673 1 1 using System.Collections.Generic; 2 2 using System.ComponentModel.DataAnnotations; 3 using System.Text.Json.Serialization; 3 4 using FarmatikoData.Base; 5 using Newtonsoft.Json; 4 6 5 7 namespace FarmatikoData.Models … … 11 13 } 12 14 [Required] 15 [JsonProperty("Email")] 13 16 public string Email { get; set; } 14 17 [Required] 18 [JsonProperty("Name")] 15 19 public string Name { get; set; } 16 20 [Required] 21 [JsonProperty("Passwd")] 17 22 public string Password { get; set; } 18 public List<MedicineList> MedicineLists { get; set; } 19 public List<Pharmacy> PharmaciesList { get; set; } 23 [JsonProperty("PharmacyMedicines")] 24 public List<Medicine> MedicineList { get; set; } 25 [Required] 26 [JsonProperty("Pharmacy")] 27 public ICollection<Pharmacy> PharmaciesList { get; set; } 28 //[JsonProperty("PHMedicineList")] 29 public ICollection<PharmacyHeadMedicine> PHMedicineList { get; set; } 20 30 21 31 } -
FarmatikoData/Models/RequestPharmacyHead.cs
rad60966 r1db5673 4 4 using System.ComponentModel.DataAnnotations; 5 5 using System.Text; 6 using System.Text.Json.Serialization; 6 7 7 8 namespace FarmatikoData.Models … … 13 14 } 14 15 [Required] 16 [JsonPropertyName("PharmacyHead")] 15 17 public PharmacyHead Head { get; set; } 16 18 [Required] 19 [JsonPropertyName("Pharmacy")] 17 20 public Pharmacy Pharmacy { get; set; } 18 21
Note:
See TracChangeset
for help on using the changeset viewer.