public virtual Task <AppCore.Result> Reject(model.Flow flow, IDictionary <string, string> httpHeaders = null)
        {
            var routeParamValues = new Dictionary <string, string> {
                { "flow", flow == null ? null : flow.ToString() }
            };
            const string url = "api/v1/flow/reject";

            return(_client.SendAsync(true, url, routeParamValues, httpHeaders, flow));
        }
Exemple #2
0
        public async Task <AppCore.Result> RejectAsync(mdl.Flow flow, AppCore.IActivityLog log)
        {
            try
            {
                //var result = (await _dbPBL.RejectFlowAsync(
                //    _documentID: flow.DocumentID,
                //    _fromUserID: flow.FromUserID,
                //    _fromPositionID: flow.FromPositionID,
                //    _comment: flow.Comment,
                //    _log: log?.Value
                //    )).ToActionResult();

                //return result;

                return(AppCore.Result.Successful());
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemple #3
0
 public Task <AppCore.Result> Reject(mdl.Flow flow)
 => _service.RejectAsync(flow);