public async Task <List <OrderViewModel> > GetOrderByDate(string empid) { var list = new List <OrderViewModel>(); list = await _orderRespository.GetOrderByDate(empid); return(list); }
public async Task <List <OrderViewModel> > GetOrderByDate(DateTime?_date) { var list = new List <OrderViewModel>(); list = await _orderRespository.GetOrderByDate(_date); return((list == null) ? null : list); }