Exemple #1
0
        [HttpGet("byProjectTeamLeader/{idTeam}/{IdProject}")]//ROUTE
        public IActionResult GetByProjectTeamLeader(int idTeam, int IdProject)
        {
            var timesheet = _timesheetService.GetTimesheetByProjectTeamLeader(idTeam, IdProject);

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

            return(Ok(timesheetDto));
        }