コード例 #1
0
        public async Task <ActionResult <Employe> > GetEmploye(int id)
        {
            try
            {
                var result = await _employ.GetEmploye(id);

                if (result == null)
                {
                    return(NotFound());
                }

                return(result);
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, "Server Problem"));
            }
        }