public IActionResult Update([FromBody] CourseDto courseDto, [FromRoute] Guid courseEntityId)
        {
            var result = _courseLogic.Update(courseDto, courseEntityId);

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

            return(Ok(result));
        }
Ejemplo n.º 2
0
        public IActionResult Edit([FromBody] CourseDto courseDto)
        {
            var course = _courseLogic.Update(courseDto);

            return(Ok(course));
        }