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