//id e göre brand getirme islemi public override Result <Brand> GetById(int id) { Brand b = db.Brands.SingleOrDefault(t => t.BrandID == id); return(result.GetT(b)); }
public override Result <Member> GetT(int id) { return(result.GetT(db.Member.Find(id))); }
public override Result <Product> GetById(int id) { Product p = db.Products.SingleOrDefault(t => t.ProductID == id); return(result.GetT(p)); }
public override Result <Category> GetT(int id) { return(result.GetT(db.Categories.SingleOrDefault(t => t.ID == id))); }
public override Result <Address> GetById(int id) { Address ad = db.Addresses.SingleOrDefault(m => m.AddressId == id); return(result.GetT(ad)); }
public override Result <Order> GetById(int id) { Order ord = db.Orders.FirstOrDefault(t => t.OrderID == id); return(result.GetT(ord)); }
public Result <OrderDetail> GetOrdByTwoId(int OD, int PID) { OrderDetail ord = db.OrderDetails.SingleOrDefault(t => t.OrderID == OD && t.ProductID == PID); return(result.GetT(ord)); }
public override Result <Member> GetById(int id) { return(result.GetT(db.Members.SingleOrDefault(m => m.UserID == id))); }
public override Result <Comment> GetT(int id) { return(result.GetT(db.Comments.Find(id))); }
public override Result <Articles> GetT(int id) { return(result.GetT(db.Articles.SingleOrDefault(t => t.Id == id))); }
public override Result <Category> GetById(Guid id) { Category c = db.Categories.SingleOrDefault(t => t.CategoryID == id); return(result.GetT(c)); }