public object Commit(object objeto = null) { if (_notifications.temNotificacoes()) { return(null); } return(_unitOfWork.Commit(objeto)); // return true; }
public Task <HttpResponseMessage> CreateResponse(HttpResponseMessage result) { if (Notifications.temNotificacoes()) { ResponseMessage = Request.CreateResponse(result.StatusCode, Notifications.Notifica()); result = ResponseMessage; } var tsc = new TaskCompletionSource <HttpResponseMessage>(); tsc.SetResult(result); return(tsc.Task); }