Ignore:
Timestamp:
09/30/20 10:37:22 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
1454207
Parents:
63d885e
Message:

Add new repo, service and controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Models/PharmacyHead.cs

    r63d885e r5d02859  
    11using System;
    22using System.Collections.Generic;
     3using System.ComponentModel.DataAnnotations;
    34using System.Text;
    45using FarmatikoData.Base;
     
    910    public class PharmacyHead : BaseEntity
    1011    {
    11         public MedicineList PharmacyMedicines { get; set; }
    12         public Pharmacy Pharmacy { get; set; }
     12        public PharmacyHead()
     13        {
     14        }
     15        [Required]
    1316        public string Email { get; set; }
     17        [Required]
    1418        public string Name { get; set; }
     19        [Required]
    1520        public string Password { get; set; }
    1621        public ICollection<MedicineList> MedicineLists { get; set; }
    1722        public ICollection<Pharmacy> PharmaciesList { get; set; }
    18         public PharmacyHead()
    19         {
    20             PharmaciesList = new HashSet<Pharmacy>();
    21             MedicineLists = new HashSet<MedicineList>();
    22         }
     23
    2324    }
    2425}
Note: See TracChangeset for help on using the changeset viewer.