Exemplo n.º 1
0
        [HttpGet("byProjectUserDateTeamLeader/{IdProject}/{IdUser}/{date}")]//ROUTE
        public IActionResult GetByUserDateProjectTeamLeader(int IdProject, int IdUser, DateTime date)
        {
            var timesheet = _timesheetService.GetTimesheetByProjectUserDateTeamLeader(IdProject, IdUser, date);

            var timesheetDto = _mapper.Map <IList <TimesheetViewDto> >(timesheet);

            return(Ok(timesheetDto));
        }