Ignore:
Timestamp:
11/14/20 12:27:30 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
68454c6
Parents:
ad60966
Message:

Fix bugs, add some more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Models/PharmacyHead.cs

    rad60966 r1db5673  
    11using System.Collections.Generic;
    22using System.ComponentModel.DataAnnotations;
     3using System.Text.Json.Serialization;
    34using FarmatikoData.Base;
     5using Newtonsoft.Json;
    46
    57namespace FarmatikoData.Models
     
    1113        }
    1214        [Required]
     15        [JsonProperty("Email")]
    1316        public string Email { get; set; }
    1417        [Required]
     18        [JsonProperty("Name")]
    1519        public string Name { get; set; }
    1620        [Required]
     21        [JsonProperty("Passwd")]
    1722        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; }
    2030
    2131    }
Note: See TracChangeset for help on using the changeset viewer.