public JsonResult AddExternalHead(Externalhead head) { try { cExternalProjectHead ExtHead = cExternalProjectHead.Create(); ExtHead.sName = head.Name; ExtHead.sEmailID = head.Email; ExtHead.sContactNo = head.Contact; ExtHead.objClient.iObjectID = Convert.ToInt32(head.SelectedExternalClient[0]); ExtHead.bIsActive = true; ExtHead.Save(); head.ExternalClientList = getIClientList(); ViewBag.DataSaved = "External head added successfully"; return Json("1"); } catch (Exception ex) { throw ex; } }
public ActionResult AddExternalHead() { Externalhead ExtHead = new Externalhead(); ExtHead.ExternalClientList = getIClientList(); return View(ExtHead); }