Esempio n. 1
0
 public HttpResponseMessage SignIn(SignForm credentials)
 {
     try
     {
         string retVal = UserDbManager.LogIn(credentials.Username, credentials.Password);
         return(Request.CreateResponse(HttpStatusCode.OK, retVal));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest));
     }
 }