示例#1
0
 public async Task <HttpResponseMessage> DeleteSingleWithObject(Accounts Entity)
 {
     try
     {
         return(Request.CreateResponse <bool>(HttpStatusCode.OK, await _repo.DeleteSingle(Entity)));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }