Beispiel #1
0
        public IActionResult Edit(long id)
        {
            if (id == 0)
            {
                return(NotFound(_NotFound));
            }

            try
            {
                var output = _courseOutcomeRepository.GetById(id);
                if (output != null)
                {
                    return(Ok(output));
                }
                else
                {
                    return(NotFound(_NotFound));
                }
            } catch (Exception e) {
                return(BadRequest(e));
            }
        }