public ActionResult Create([Bind(Include = "RoleId,RoleName,Status")] RoleMaster roleMaster) { try { if (ModelState.IsValid) { roleMaster.UserId = Convert.ToInt32(Session["UserID"]); _iRole.AddRoleMaster(roleMaster); return(RedirectToAction("Index")); } return(View(roleMaster)); } catch (Exception) { throw; } }