Ejemplo n.º 1
0
 public IActionResult GetWorkingHoursByProject([FromQuery] string supervisorId, [FromQuery] ProjectActivitiesOwnerParameters ownerParams)
 {
     if (supervisorId.Length == 0 || ownerParams.ProjectId == 0 || ownerParams.DateFormatSelected.Length == 0)
     {
         return(BadRequest("Please check owner parameters Project and DateFormat must be selected"));
     }
     return(Ok(_reportFacade.GetWorkingHoursByOwnerParamsBySupervisor(ownerParams, supervisorId)));
 }