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)); }
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); } }