Last change
on this file since ad60966 was 5d02859, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Add new repo, service and controller
|
-
Property mode
set to
100644
|
File size:
1002 bytes
|
Line | |
---|
1 | using FarmatikoData.Base;
|
---|
2 | using System.ComponentModel.DataAnnotations;
|
---|
3 |
|
---|
4 | namespace FarmatikoData.Models
|
---|
5 | {
|
---|
6 | public class Medicine : BaseEntity
|
---|
7 | {
|
---|
8 | public Medicine() { }
|
---|
9 | [Required]
|
---|
10 | public string Name { get; set; }
|
---|
11 | [Required]
|
---|
12 | public string Strength { get; set; }
|
---|
13 | public string Form { get; set; }
|
---|
14 | [Required]
|
---|
15 | public string WayOfIssuing { get; set; }
|
---|
16 | [Required]
|
---|
17 | public string Manufacturer { get; set; }
|
---|
18 | public float Price { get; set; }
|
---|
19 | public string Packaging { get; set; }
|
---|
20 | public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging)
|
---|
21 | {
|
---|
22 | this.Name = Name;
|
---|
23 | this.Strength = Strength;
|
---|
24 | this.Form = Form;
|
---|
25 | this.WayOfIssuing = WayOfIssuing;
|
---|
26 | this.Manufacturer = Manufacturer;
|
---|
27 | this.Price = Price;
|
---|
28 | this.Packaging = Packaging;
|
---|
29 | }
|
---|
30 |
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.