Exemplo n.º 1
0
        public async Task <ActionResult <TimesheetViewModel> > GetTimesheet(int id)
        {
            Debug.WriteLine("inside single param get...");
            //Timesheet ts = await(GetFullTimesheetDetails(await _timesheetRepository.Get(id)));
            TimesheetViewModel tsViewModel =
                await(GetFullTimesheetViewModelDetails(new TimesheetViewModel(await _timesheetRepository.Get(id))));

            return(Ok(tsViewModel));
        }