Exemplo n.º 1
0
 public IHttpActionResult Post([FromBody] Users Users)
 {
     try
     {
         SessionDomain.UpdateSession();
         return(Ok(usersDomain.Post(Users)));
     }
     catch (Exception ex)
     {
         return(Exceptions(ex));
     }
 }
Exemplo n.º 2
0
 public IHttpActionResult Login(string Email, string Password)
 {
     try
     {
         SessionDomain.UpdateSession();
         return(Ok(usersDomain.Login(Email, Password)));
     }
     catch (Exception ex)
     {
         return(Exceptions(ex));
     }
 }