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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public Customer GetCustomer(string id, string pass)
 {
     return(repo.Find(x => x.CustomerID == id && x.Password == pass));
 }
Esempio n. 4
0
 public Product GetProduct(int id)
 {
     return(repo.Find(x => x.ProductID == id));
 }
Esempio n. 5
0
 public Note GetNot(int id)
 {
     return(repo.Find(x => x.NoteID == id));
 }
 public Kullanicilar KullaniciGiris(string email)
 {
     return(repo.Find(x => x.Email == email));
 }
Esempio n. 7
0
 public OrganizeKullanici GetOrganizeKullanici(int OrganizeKullaniciID)
 {
     return(repo1.Find(x => x.OrganizeKatilimciID == OrganizeKullaniciID));
 }
Esempio n. 8
0
 public Organizeler GetOrganizeDetay(int Organizeid)
 {
     return(repo.Find(x => x.OrganizeID == Organizeid));
 }
Esempio n. 9
0
 public Employee GetEmployee(string mail)
 {
     return(repo.Find(x => x.Email == mail));
 }
Esempio n. 10
0
        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);
        }
Esempio n. 13
0
 public Lead GetLead(int id)
 {
     return(repo.Find(x => x.LeadID == id));
 }
Esempio n. 14
0
 public Nakliyeciler GetNakliyeci(int id)
 {
     return(repo.Find(x => x.NakliyeciID == id));
 }
Esempio n. 15
0
 public Customer GetCustomer(int Id)
 {
     return(repo.Find(x => x.CustomerID == Id));
 }
Esempio n. 16
0
 public Order_Detail  GetOrder_Detail(int orderid)
 {
     return(repos.Find(x => x.OrderID == orderid));
 }