public async Task <IHttpActionResult> DeleteCheckSheet(stringReceiver sR) { try { string id = sR.decoded(); PATROL_LOG patrol_log = await db.PATROL_LOG.FindAsync(id); if (patrol_log == null) { throw new ApplicationException(); } db.PATROL_LOG.Remove(patrol_log); await db.SaveChangesAsync(); NotificationController.NotificationCallbackMsg("删", "巡检单" + sR.decoded()); var checkSheets = GetCheckSheets().data.ToList(); return(Ok(returnHelper.make(checkSheets))); } catch (Exception) { return(Ok(returnHelper.fail())); } }