// GET: Admin/Teams/Edit/5 public ActionResult Edit(int id) { var page = _teamServices.GetById(id); if (page == null) { AR.Setfailure(Messages.HttpNotFound); return(Json(AR, JsonRequestBehavior.DenyGet)); // return HttpNotFound(); } var editTeam = _mapper.Map <Team, TeamIM>(page); return(PartialView("_Edit", editTeam)); }