Esempio n. 1
0
        public IActionResult GetOverTimes()
        {
            var OverTimes = _OverTimeRepository.GetOverTimes();

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

            return(Ok(OverTimes));
        }
Esempio n. 2
0
        public async Task <OverTime> GetOverTime(int id)
        {
            try
            {
                var res = await _repository.GetOverTimes(id);

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