public async Task <bool> AcceptReceive(string receiveID) { var receiveModel = _repoReceive.FindSingle(x => x.ID.Trim() == receiveID.Trim()); if (receiveModel != null) { receiveModel.Status = "2"; receiveModel.Updated_Time = DateTime.Now; try { return(await _repoReceive.SaveAll()); } catch (Exception) { return(false); } } else { return(false); } }