public bool InsertNewTechnician(string firstName, string lastName, string address, string state, string city, string company, string email, string phone, string mobilePhone) { try { Technician technician = new Technician(); technician.Address = address; technician.City = city; technician.Company = company; technician.email = email; technician.FirstName = firstName; technician.LastName = lastName; technician.MobilePhone = mobilePhone; technician.Phone = phone; technician.State = state; _dataBase.Technicians.InsertOnSubmit(technician); _dataBase.SubmitChanges(); return true; } catch { return false; } }
partial void UpdateTechnician(Technician instance);
partial void DeleteTechnician(Technician instance);
partial void InsertTechnician(Technician instance);