コード例 #1
0
        public IActionResult PutAcademicDegrees(int id, [FromBody] AcademicDegrees data)
        {
            try
            {
                var res = _repository.UpdateAcademicDegrees(id, data);

                if (!res)
                {
                    return(Conflict(409));
                }

                return(Ok(res));
            }
            catch (Exception error)
            {
                return(BadRequest(error));
            }
        }