コード例 #1
0
        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));
        }
コード例 #2
0
 public Ninja Get(int id)
 {
     return(_repo.GetNinjaWithEquipmentAndClan(id));
 }