Пример #1
0
 public async Task <HttpResponseMessage> SaveSingle(Accounts Entity)
 {
     try
     {
         return(Request.CreateResponse <int>(HttpStatusCode.OK, await _repo.SaveSingle(Entity, 1)));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }