Example #1
0
        public IActionResult GetAll()
        {
            var users    = _timesheetService.GetAll();
            var userDtos = _mapper.Map <IList <TimesheetDto> >(users);

            return(Ok(userDtos));
        }
Example #2
0
 public IActionResult Get()
 {
     return(Ok(_timesheetService.GetAll().ToApiModels()));
 }
Example #3
0
 public IEnumerable <Timesheet> GetAll()
 {
     return(_timesheetService.GetAll());
 }
Example #4
0
 public async Task <ActionResult <IEnumerable <TimesheetViewModel> > > GetTimesheets()
 {
     return(await Task.FromResult(_timesheetService.GetAll()));
 }