Esempio n. 1
0
 public ActionResult <WebResponce> ValidateLogIn([FromBody] Employee employe)
 {
     webResponce = logInService.ListLogInInfo(employe);
     if (webResponce.Code == 1)
     {
         Response.Cookies.Append("jkfitness.cookie", Crypto.EncryptString(((Employee)webResponce.Data).EmployeeId));
     }
     return(webResponce);
 }