Пример #1
0
 public HttpResponseMessage UIDAICheck([FromUri] string uidai)
 {
     try
     {
         if (uidai != null)
         {
             if (userBDC.FindUserByUIDAI(uidai))
             {
                 return(Request.CreateResponse(HttpStatusCode.OK, true));
             }
             else
             {
                 return(Request.CreateResponse(HttpStatusCode.OK, false));
             }
         }
         else
         {
             return(Request.CreateResponse(HttpStatusCode.BadRequest, ModelState));
         }
     }
     catch (Exception)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, false));
     }
 }