예제 #1
0
 public HttpResponseMessage login(string email, string password)
 {
     try
     {
         RegisterUserService svc  = new RegisterUserService();
         ItemResponse <bool> resp = new ItemResponse <bool>();
         resp.Item = svc.Login(email, password);
         return(Request.CreateResponse(HttpStatusCode.OK, resp));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }