protected void BtnSave_Click(object sender, EventArgs e) { Supplierstbl ls = new Supplierstbl { Supplier = txtSupplier.Text, PersonName = txtName.Text, Email = txtEmail.Text, MobileNo = txtMobile.Text, Address = txtAddress.Text, ApiPurchaseDate = txtDate.Text, ApiKey = txtAPIKey.Text, ApiPurchaseValue = txtAPValue.Text, AgentLink = txtALink.Text, SupplierCode = txtSupplierCode.Text, UserName = txtUserName.Text, Password = txtPassword.Text, AcntName = txtAName.Text, AcntEmail = txtAEmail.Text, AcntNumber = txtANumber.Text, OperationName = txtOperationsName.Text, OperationEmail = txtOEmail.Text, OperationNumber = txtONumber.Text, MngmtName = txtManagementName.Text, MngmtEmail = txtMEmail.Text, MngmtNumber = txtMNumber.Text, IsActive = 1, CreatedBy = 1, CreatedDate = DateTime.Now.ToString(" yyyy-MM-dd HH:mm:ss") }; List <Supplierstbl> lst = new List <Supplierstbl>(); lst = objSuppliersBL.SaveSuppliers(ls).ToList(); ScriptManager.RegisterStartupScript(this, GetType(), "alertMessage", "alertMessage('Suppliers Saved Successfully');", true); Clear(); Response.Redirect("SuppliersList.aspx"); }
public static FASM_Enums.InfoMessages SaveSuppliers(ref Suppliers eSuppliers) { SuppliersBL SuppliersBL = new SuppliersBL(); return(SuppliersBL.SaveSuppliers(ref eSuppliers)); }