Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult ListByCourse(long courseId) { try { var output = _instructorRepository.GetAllByCourse(courseId); if (output.Count() > 0) { return(Ok(output)); } else { return(Ok(new GenericResult { Response = true, Message = "Instructor Record is empty" })); } } catch (Exception e) { return(BadRequest(e)); } }