Exemple #1
0
        public WorkflowHistoryDto GetByActionAndFormNumber(GetByActionAndFormNumberInput input)
        {
            var dbData =
                _repository.Get(c => c.ACTION == input.ActionType && c.FORM_NUMBER == input.FormNumber, null,
                                includeTables).FirstOrDefault();

            return(Mapper.Map <WorkflowHistoryDto>(dbData));
        }
Exemple #2
0
        public void DeleteByActionAndFormNumber(GetByActionAndFormNumberInput input)
        {
            var dbData =
                _repository.Get(c => c.ACTION == input.ActionType && c.FORM_NUMBER == input.FormNumber, null,
                                includeTables).FirstOrDefault();

            if (dbData != null)
            {
                _repository.Delete(dbData);
            }
        }