public ActionResult BirthRegistration(BirthProcess BRobject, HttpPostedFileBase httpPostedFileBase)
        {
            int id = BRobject.ID;

            if (string.IsNullOrEmpty(BRobject.DocumentType))
            {
                ModelState.AddModelError("DocumentType", "Please Select Document Type");
            }

            obj = new BirthProcessAction();
            int Custid = Convert.ToInt32(Session["Cust_ID"]);
            //Commented the lines below - Soumendu
            //
            //if (BRobject.CustomerGender == "Female")
            //    {
            //        BRobject.Name_of_Mother = BRobject.CustomerName;
            //    }
            //else
            //    {
            //        BRobject.Name_of_Father = BRobject.CustomerName;
            //    }
            string result = obj.create(BRobject, 1, Custid, BRobject.FormType);

            string[] line       = result.Split('|');
            string   Rt         = line[0].ToString();
            string   Appno      = line[1].ToString();
            string   FormType_1 = BRobject.FormType;

            Session["AppNo"] = FormType_1 + "_" + Appno;

            Clear();
            int Roleid = Convert.ToInt16(Session["SortedList1"]);
            int CustID = Convert.ToInt32(Session["Cust_ID"].ToString());

            if (Rt == "Registered Successfully")
            {
                string fileSavePath = HttpContext.Server.MapPath("~/UploadedFiles/");

                string rt = Utility.Util.AddDocuments(Request, BRobject.DocList, fileSavePath,
                                                      FormType_1 + "_" + Appno, CustID);

                string AppNo = FormType_1 + "_" + Appno;
                List <MailNotification> MailInfo = obj.getMailInfo("BirthApplied", AppNo);
                for (int i = 0; i < MailInfo.Count; i++)
                {
                    Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                             ("*****@*****.**", MailInfo[i].Subject, MailInfo[i].MailAppNo);
                    mailNotification.Notify();
                }



                Message();
            }

            TempData["Viewstr"]      = Session["ViewData"].ToString();
            TempData["ErrorMessage"] = "Your application has been register succesfully." +
                                       "\n Your application id no:" + Appno;
            return(RedirectToAction("Index", "Login"));
        }