public ActionResult Create(Title body) { if (ModelState.IsValid && ApiConsumer.Post("/titles", body).IsSuccessStatusCode) { return(RedirectToAction("Index")); } return(View(body)); }
public ActionResult Create(Lawyer body) { if (ModelState.IsValid && ApiConsumer.Post("/lawyers", body).IsSuccessStatusCode) { return(RedirectToAction("Index")); } prepareSelects(); return(View(body)); }