コード例 #1
0
        public async Task <IActionResult> GetHistory(int year)
        {
            try
            {
                var data = await _service.GetOvertimeHistory("", year).ConfigureAwait(false);

                return(Ok(data));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }