Exemplo n.º 1
0
        public ActionResult EditCoach(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CoachVm coachVm = service.EditCoach(id);

            if (coachVm == null)
            {
                return(HttpNotFound());
            }
            return(View(coachVm));
        }