Esempio n. 1
0
        public ActionResult AddClarification(ClarificationModelList contact)
        {
            Bprocess = new BirthProcessAction();
            int Custid = Convert.ToInt32(Session["Cust_ID"]);

            for (int i = 0; i < contact.RegistrationForm.Count; i++)
            {
                int id = contact.RegistrationForm[i].ID;


                string   result = Bprocess.edit(contact.RegistrationForm[i], 1, Custid, contact.RegistrationForm[i].FormType);
                string[] line   = result.Split('|');
                string   Rt     = line[0].ToString();
                string   Appno  = line[1].ToString();

                int Roleid = Convert.ToInt16(Session["SortedList1"]);


                string FormType_1 = contact.RegistrationForm[i].BnDType.ToString();

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

                if (Rt == "Update Successfully")
                {
                    string fileSavePath = Server.MapPath("~/UploadedFiles/");
                    BR_ID = Convert.ToInt16(Session["BirthRegister_ID"]);

                    string rt = Utility.Util.EditDocuments(Request, contact.DocList, fileSavePath,
                                                           FormType_1 + "_" + Appno, Custid);
                }
            }
            return(RedirectToAction("Dashboard", "DashBoard"));
        }