public ActionResult SendApp(AccountSendAppInputModel input) { if (ModelState.IsValid) { var status = this.accountAdapter.SendApplication(User.Identity.Name, input.UserInterestId, input.Application); if (status.StatusCode == 200) return View("SendAppSent"); HandleErrors(status); } var lead = this.accountAdapter.GetUserInterest(User.Identity.Name, input.UserInterestId); if (lead.StatusCode != 200) throw new HttpException(404, "Not Found"); AccountSendAppModel model = new AccountSendAppModel(lead.Result); model.Input = input; return View(model); }
public ActionResult SendApp(int id) { var status = this.accountAdapter.GetUserInterest(User.Identity.Name, id); if (status.StatusCode != 200) throw new HttpException(404, "Not Found"); AccountSendAppModel model = new AccountSendAppModel(status.Result); return View(model); }