public ActionResult OnPost(MajorType major, int id) { Hero = GetHeroFromCookies(major); var response = _branchService.Assign(Hero, id, 0); if (!response.Successful()) { IsPartial = true; Status = new StatusResult(response.Errors); return(Page()); } Hero = response.Object; return(GoNext()); }