public bool InsertNewComapny(string name, string address, string state, string city,string zip,string url, string email, string phone1, string phone2,string phone3 , string fax) { try { Company comapny = new Company(); comapny.Address = address; comapny.City = city; comapny.Name = name; comapny.Email = email; comapny.Url = url; comapny.Phone1 = phone1; comapny.Phone2 = phone2; comapny.Phone3 = phone3; comapny.Fax = fax; comapny.State = state; comapny.Zip_Code = zip; _dataBase.Companies.InsertOnSubmit(comapny); _dataBase.SubmitChanges(); return true; } catch { return false; } }
partial void UpdateCompany(Company instance);
partial void DeleteCompany(Company instance);
partial void InsertCompany(Company instance);