public ModelEmployee GetEmployee(int id) { Employees employee = repo.Find(x => x.EmployeeID == id); ModelEmployee modelemployee = new ModelEmployee { EmployeeID = employee.EmployeeID, Extension = employee.Extension, Address = employee.Address, City = employee.City, FirstName = employee.FirstName, HomePhone = employee.HomePhone, Region = employee.Region, PostalCode = employee.PostalCode, Country = employee.Country, LastName = employee.LastName, Title = employee.Title, TitleOfCourtesy = employee.TitleOfCourtesy, ReportsTo = employee.ReportsTo }; return(modelemployee); }
public void UpdateCustomer(Customers customer) { Customers cust = repo.Find(x => x.CustomerID == customer.CustomerID); cust.ContactName = customer.ContactName; cust.CompanyName = customer.CompanyName; cust.Address = customer.Address; cust.City = customer.City; cust.ContactTitle = customer.ContactTitle; cust.Country = customer.Country; cust.Password = customer.Password; cust.Phone = customer.Phone; cust.PostalCode = customer.PostalCode; cust.Region = customer.Region; repo.Update(cust); }
public Customer GetCustomer(string id, string pass) { return(repo.Find(x => x.CustomerID == id && x.Password == pass)); }
public Product GetProduct(int id) { return(repo.Find(x => x.ProductID == id)); }
public Note GetNot(int id) { return(repo.Find(x => x.NoteID == id)); }
public Kullanicilar KullaniciGiris(string email) { return(repo.Find(x => x.Email == email)); }
public OrganizeKullanici GetOrganizeKullanici(int OrganizeKullaniciID) { return(repo1.Find(x => x.OrganizeKatilimciID == OrganizeKullaniciID)); }
public Organizeler GetOrganizeDetay(int Organizeid) { return(repo.Find(x => x.OrganizeID == Organizeid)); }
public Employee GetEmployee(string mail) { return(repo.Find(x => x.Email == mail)); }
public Person _GetPerson(int Id) { var result = repo.Find(x => x.ID == Id); return(result); }
public Customers GetCustomer(string customerid) { Customers result = repo.Find(x => x.CustomerID == customerid); return(result); }
public Employees FindEmployee(int id) { Employees employee = repo.Find(x => x.EmployeeID == id); return(employee); }
public Lead GetLead(int id) { return(repo.Find(x => x.LeadID == id)); }
public Nakliyeciler GetNakliyeci(int id) { return(repo.Find(x => x.NakliyeciID == id)); }
public Customer GetCustomer(int Id) { return(repo.Find(x => x.CustomerID == Id)); }
public Order_Detail GetOrder_Detail(int orderid) { return(repos.Find(x => x.OrderID == orderid)); }