public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var posts = _repo.GetNinjaWithEquipmentAndClan(id.Value); if (posts == null) { return(HttpNotFound()); } return(View(posts)); }
public Ninja Get(int id) { return(_repo.GetNinjaWithEquipmentAndClan(id)); }