Пример #1
0
 public VisitersDTO Login([FromBody] LoginVisiters loginEmployee)
 {
     if (loginEmployee.Password == null)
     {
         return(null);
     }
     return(VisitersBL.Login(loginEmployee.Username, loginEmployee.Password));
 }
Пример #2
0
 public VisitersDTO SignUp([FromBody] SignUpVisiters signUpVisiters)
 {
     return(VisitersBL.SignUp(signUpVisiters.FirstName, signUpVisiters.LastName, signUpVisiters.Mail, signUpVisiters.NameUser, signUpVisiters.Password));
 }
Пример #3
0
 public bool AddDose([FromBody] InventDoseDTO InventDose)
 {
     return(VisitersBL.AddDose(InventDose));
 }
Пример #4
0
 public VisitersDTO Get(int id)
 {
     return(VisitersBL.GetById(id));
 }