Exemplo n.º 1
0
        public void UpdateFormRequestState(int formRequestId, FormRequestState state)
        {
            var req = _formRequestGateway.SelectOne(formRequestId);

            req.State = Mapper.Map <Data.Models.FormRequestState>(state);
            _formRequestGateway.Update(req);
        }
Exemplo n.º 2
0
 public ResultModel UpdateState(int id, FormRequestState state)
 {
     try
     {
         _formRequestService.UpdateFormRequestState(id, state);
         return(ResultModel.Success);
     }
     catch (Exception e)
     {
         _logService.LogError(e);
         return(ResultModel.Error);
     }
 }