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