Esempio n. 1
0
        public object Commit(object objeto = null)
        {
            if (_notifications.temNotificacoes())
            {
                return(null);
            }

            return(_unitOfWork.Commit(objeto));
            // return true;
        }
Esempio n. 2
0
        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);
        }