public IHttpActionResult GetSubjectByName(string name) { var subject = subjectRepo.GetByName(name); if (subject == null) { return(Content(HttpStatusCode.NotFound, "Item does not exist")); } return(Ok(subject)); }
public IHttpActionResult GetSubjectByName(string name) { var subject = subjectRepo.GetByName(name); if (subject == null) { return(Content(HttpStatusCode.NotFound, "Item does not exist")); } return(Ok(subject)); }