public ActionResult BirthRegistration(string FormType) { string[] IE = Request.Params.AllKeys; BirthProcess BprocessView = new BirthProcess(); BprocessView.Date_of_Birth = System.DateTime.Today;//For Current Date BprocessView.Date_of_Death = System.DateTime.Today; int CustID = Convert.ToInt32(Session["Cust_ID"].ToString()); BprocessView.CustomerName = obj.CustomerDetails(CustID); BprocessView.CustomerAddress = obj.CustomerAddress(CustID); BprocessView.CustomerGender = obj.CustomerGender(CustID); // BprocessView.DocTypeList = objdocument.DocumentList(); if (FormType == "BR") { BprocessView.DocList = obj.DocumentList(1); //1 is process id } else { BprocessView.DocList = obj.DocumentList(2); //2 is process id } BprocessView.FormType = FormType; return(View(BprocessView)); }