Ignore:
Timestamp:
02/07/21 16:25:56 (22 months ago)
Author:
Dimitar Slezenkovski <dslezenkovski@…>
Branches:
master
Children:
e0cdea2
Parents:
ac51326
Message:

Fix create new user bug.

Location:
FarmatikoData/Models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Models/Medicine.cs

    rac51326 r0a694bb  
    2323        public string Packaging { get; set; }
    2424        //[JsonPropertyName("PHMedicineList")]
    25         public ICollection<PharmacyHeadMedicine> Medicines { get; set; }
     25        public virtual 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

    rac51326 r0a694bb  
    55using FarmatikoData.Base;
    66using Microsoft.EntityFrameworkCore;
     7using Newtonsoft.Json;
    78
    89namespace FarmatikoData.Models
     
    1213        public Pharmacy() { }
    1314        [Required]
     15        [JsonProperty("name")]
    1416        public string Name { get; set; }
    1517        [Required]
     18        [JsonProperty("location")]
    1619        public string Location { get; set; }
    1720        [Required]
     21        [JsonProperty("address")]
    1822        public string Address { get; set; }
    1923        [Required]
     24        [JsonProperty("workAllTime")]
    2025        public bool WorkAllTime { get; set; }
    2126        public Pharmacy(string Name, string Location, string Address, bool WorkAllTime)
  • FarmatikoData/Models/PharmacyHead.cs

    rac51326 r0a694bb  
    2424        public virtual List<Pharmacy> Pharmacies { get; set; }
    2525        public virtual List<PharmacyHeadMedicine> Medicines { get; set; }
    26        
     26
     27        public int UserID { get; set; }
    2728        public User User { get; set; }
    2829
Note: See TracChangeset for help on using the changeset viewer.