Ignore:
Timestamp:
01/26/21 10:33:09 (22 months ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
7d80751
Parents:
8e74e2f
Message:

Fix bugs

Location:
FarmatikoData/Models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Models/Medicine.cs

    r8e74e2f rdb484c9  
    2323        public string Packaging { get; set; }
    2424        //[JsonPropertyName("PHMedicineList")]
    25         public ICollection<PharmacyHeadMedicine> MedicineList { get; set; }
     25        public ICollection<PharmacyHeadMedicine> Medicines { get; set; }
    2626        public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging)
    2727        {
  • FarmatikoData/Models/Pharmacy.cs

    r8e74e2f rdb484c9  
    2727        }
    2828        public int PheadId { get; set; }
    29         public PharmacyHead PHead { get; internal set; }
     29        public PharmacyHead PharmacyHead { get; set; }
    3030    }
    3131}
  • FarmatikoData/Models/PharmacyHead.cs

    r8e74e2f rdb484c9  
    2121        [JsonProperty("Passwd")]
    2222        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 User User { get; set; }
    2328
    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; }
    3029
    3130    }
Note: See TracChangeset for help on using the changeset viewer.