source: FarmatikoData/Models/Medicine.cs@ afefe75

Last change on this file since afefe75 was db484c9, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Fix bugs

  • Property mode set to 100644
File size: 1.2 KB
Line 
1using FarmatikoData.Base;
2using System.Collections;
3using System.Collections.Generic;
4using System.ComponentModel.DataAnnotations;
5using System.Diagnostics.CodeAnalysis;
6using System.Text.Json.Serialization;
7
8namespace FarmatikoData.Models
9{
10 public class Medicine : BaseEntity
11 {
12 public Medicine() { }
13 [Required]
14 public string Name { get; set; }
15 [Required]
16 public string Strength { get; set; }
17 public string Form { get; set; }
18 [Required]
19 public string WayOfIssuing { get; set; }
20 [Required]
21 public string Manufacturer { get; set; }
22 public float Price { get; set; }
23 public string Packaging { get; set; }
24 //[JsonPropertyName("PHMedicineList")]
25 public ICollection<PharmacyHeadMedicine> Medicines { get; set; }
26 public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging)
27 {
28 this.Name = Name;
29 this.Strength = Strength;
30 this.Form = Form;
31 this.WayOfIssuing = WayOfIssuing;
32 this.Manufacturer = Manufacturer;
33 this.Price = Price;
34 this.Packaging = Packaging;
35 }
36 }
37}
Note: See TracBrowser for help on using the repository browser.