public ActionResult CreateRegForm(string EmpName, string bday, string DeptID, string EmpAdress, string City, string EmpMob) { clsUserReg obj = new clsUserReg(); DateTime dtBday = Convert.ToDateTime(bday); int intDeptID = Convert.ToInt32(DeptID); double dblMob = Convert.ToDouble(EmpMob); obj.AddUser(EmpName, dtBday, intDeptID, EmpAdress, City, dblMob); ViewBag.Department = Session["Dpt"]; ViewBag.message = "Registeration done successfully"; return(View()); }
public ActionResult CreateRegForm(string EmpName, string bday, string Gender, string DeptID, string EmpAdress, string City, string EmpMob) { clsUserReg obj = new clsUserReg(); DateTime dtBday = Convert.ToDateTime(bday); int intDeptID = Convert.ToInt32(DeptID); double dblMob = Convert.ToDouble(EmpMob); obj.AddUser(EmpName, dtBday, Gender, intDeptID, EmpAdress, City, dblMob); obj.Department = GetDepartment(); ViewBag.message = "Registeration done successfully"; return(View(obj)); // return RedirectToActionPermanent("GetAllUser"); }