source: FarmatikoData/Models/Medicine.cs@ db484c9

Last change on this file since db484c9 was db484c9, checked in by DimitarSlezenkovski <dslezenkovski@…>, 22 months 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.