Пример #1
0
        public IActionResult GetOverTimes()
        {
            var OverTimes = _OverTimeRepository.GetOverTimes();

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Ok(OverTimes));
        }
Пример #2
0
        public async Task <OverTime> GetOverTime(int id)
        {
            try
            {
                var res = await _repository.GetOverTimes(id);

                return(res);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }