Example #1
0
 public IEnumerable <RequestModel> GetRequestByCategory(string requestCategory, string requestDate)
 {
     if (String.IsNullOrEmpty(requestDate))
     {
         return(_repos.GetRequestByCategory(requestCategory));
     }
     else
     {
         return(_repos.GetRequestByCategoryAndDate(requestCategory, requestDate));
     }
 }