Example #1
0
        public List <CaseTableDto> GetCaseByStatus(CaseStatusType?status, DateTime startDate, DateTime endDate)
        {
            try
            {
                List <CaseTableDto> cases = CaseRepository.GetAllCasesByStatus(status, startDate, endDate);
                if (cases.Count == 0)
                {
                    return(null);
                }

                return(cases);
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }