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