示例#1
0
 public async Task <HttpResponseMessage> Delete(UserGroupModel data)
 {
     try
     {
         await _local.DeleteAsync(data);
     }
     catch (Exception ex)
     {
         Common.MyLogger.Error(ex.Message + ex.StackTrace + ex.InnerException.ToString());
         return(Request.CreateResponse(HttpStatusCode.BadRequest, "Update Error"));
     }
     return(Request.CreateResponse(HttpStatusCode.OK, "Data Updated"));
 }