source: FarmatikoData/Models/Pharmacy.cs

Last change on this file was e0cdea2, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 3 years ago

Fix all bugs

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[30a465f]1using System;
2using System.Collections.Generic;
[5d02859]3using System.ComponentModel.DataAnnotations;
[30a465f]4using System.Text;
[a8ccc2c]5using FarmatikoData.Base;
[30a465f]6using Microsoft.EntityFrameworkCore;
[0a694bb]7using Newtonsoft.Json;
[30a465f]8
9namespace FarmatikoData.Models
10{
[a8ccc2c]11 public class Pharmacy : BaseEntity
[30a465f]12 {
13 public Pharmacy() { }
[5d02859]14 [Required]
[0a694bb]15 [JsonProperty("name")]
[30a465f]16 public string Name { get; set; }
[5d02859]17 [Required]
[0a694bb]18 [JsonProperty("location")]
[30a465f]19 public string Location { get; set; }
[5d02859]20 [Required]
[0a694bb]21 [JsonProperty("address")]
[30a465f]22 public string Address { get; set; }
[5d02859]23 [Required]
[0a694bb]24 [JsonProperty("workAllTime")]
[30a465f]25 public bool WorkAllTime { get; set; }
[c406ae5]26 public Pharmacy(string Name, string Location, string Address, bool WorkAllTime)
27 {
28 this.Name = Name;
29 this.Location = Location;
30 this.Address = Address;
31 this.WorkAllTime = WorkAllTime;
32 }
[e0cdea2]33 public int? PheadId { get; set; }
[db484c9]34 public PharmacyHead PharmacyHead { get; set; }
[30a465f]35 }
36}
Note: See TracBrowser for help on using the repository browser.