//Func RegistraionNew_RepairJob public static bool New_RepairJob(List <DbListAdapter> data) { sql_class newsql = new sql_class(); return(newsql.Insert("RepairJob", data) ? true : false); }
public static bool create_new_Customer(List <DbListAdapter> data) { sql_class newsql = new sql_class(); return(newsql.Insert("Customer", data) ? true : false); }
public static bool create_new_Employee(List <DbListAdapter> data) { sql_class newsql = new sql_class(); return(newsql.Insert("EmployeModel", data) ? true : false); }
public static bool CreateNewEvent(List <DbListAdapter> data) { sql_class newsql = new sql_class(); return(newsql.Insert("EventsModel", data) ? true : false); }
public static bool create_new_Vehicle(List <DbListAdapter> data) { sql_class newsql = new sql_class(); return(newsql.Insert("Vehicle", data) ? true : false); }
public void New_Stikey(string message, string Session) { sql_class sql = new sql_class(); var Dblist = new List <DbListAdapter>(); Dblist.Add(new DbListAdapter("GaragID", Session)); Dblist.Add(new DbListAdapter("sticky_Message", message)); sql.Insert("StickyModel", Dblist); }
public bool AddItem() { var Dblist = new List <DbListAdapter>(); Dblist.Add(new DbListAdapter("CustomerID", this.CustomerID.ToString())); Dblist.Add(new DbListAdapter("GaragID", GaragID.ToString())); Dblist.Add(new DbListAdapter("ProductId", this.ProductId)); Dblist.Add(new DbListAdapter("Quantity", this.Quantity.ToString())); Dblist.Add(new DbListAdapter("ProductName", this.ProductName)); Dblist.Add(new DbListAdapter("productPrice", this.productPrice.ToString())); Dblist.Add(new DbListAdapter("productImage", this.productImage)); Dblist.Add(new DbListAdapter("teratmentID", this.teratmentID)); sql_class sql = new sql_class(); bool newItem = sql.Insert("CartModel", Dblist); return((newItem) ? true : false); }
//Add new part to partModel table public bool newPart() { sql_class sql = new sql_class(); var Dblist = new List <DbListAdapter>(); Dblist.Add(new DbListAdapter("ProdectGroup", this.ProdectGroup)); Dblist.Add(new DbListAdapter("PartNmae", this.PartNmae)); Dblist.Add(new DbListAdapter("Condition", this.Condition)); Dblist.Add(new DbListAdapter("QuantityAaliable", this.QuantityAaliable.ToString())); Dblist.Add(new DbListAdapter("UnitPricey", this.UnitPricey.ToString())); Dblist.Add(new DbListAdapter("ImageUrl", this.ImageUrl)); Dblist.Add(new DbListAdapter("GaragID", this.GaragID.ToString())); bool succses = sql.Insert("PartModel", Dblist); if (succses) { return(true); } else { return(false); } }
public static void InsertRestData(List <DbListAdapter> data) { sql_class sql = new sql_class(); sql.Insert("RestUserAdmin", data); }