public IActionResult GetOverTimes() { var OverTimes = _OverTimeRepository.GetOverTimes(); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(OverTimes)); }
public async Task <OverTime> GetOverTime(int id) { try { var res = await _repository.GetOverTimes(id); return(res); } catch (Exception ex) { throw ex; } }