public Category Get(int categoryId) { return(_categoryDal.Get(c => c.Id == categoryId)); }
public void RemoveOrder(int id) { _categoryDal.Delete(_categoryDal.Get(s => s.Id == id)); }
public IDataResult <Category> GetById(int productId) { return(new SuccessDataResult <Category>(_categoryDal.Get(filter: p => p.CategoryId == productId))); }
//SELECT * from Categories where CategoryId =3 public Category GetById(int categoryId) { return(_categoryDal.Get(C => C.CategoryId == categoryId)); }
public Category GetCategory(Category p) { return(categoryDal.Get(x => x.CategoryId == p.CategoryId)); }
public IDataResult <Category> GetByID(int categoryID) { return(new SuccessDataResult <Category>(_categoryDal.Get(p => p.CategoryID == categoryID))); }
public Category GetById(int categoryId) { return(_categoryDal.Get(u => u.Id == categoryId)); }
public Category GetById(int categoryId) { return(_categoryDal.Get(c => c.CategoryID == categoryId)); //iş kodları(); }
public Category Get(int id) { return(_categoryDal.Get(x => x.ID == id)); }
//select * form categories where categoryId=3 IDataResult <Category> ICategoryService.GetById(int categoryId) { return(new SuccessDataResult <Category>(_categoryDal.Get(c => c.CategoryId == categoryId))); }
public void Delete(int categoryId) { var category = _categoryDal.Get(i => i.Id == categoryId); _categoryDal.Delete(category); }
public Category CategoryExists(string categoryName) { var cName = _categoryDal.Get(p => p.CategoryName == categoryName); return(cName); }
public IDataResult <Category> GetById(int categoryId) { return(new SuccessDataResult <Category> (_categoryDal.Get(c => c.CategoryID == categoryId), SuccessMessages.CategoryListed)); }
public Category Get(Expression <Func <Category, bool> > filter) { return(_categoryDal.Get(filter)); }
public Category GetByID(int id) { return(_categoryDal.Get(x => x.CategoryId == id)); }
public IDataResult <Category> GetCarsByCategoryId(int categoryId) { return(new SuccessDataResult <Category>(_categoryDal.Get(c => c.CategoryId == categoryId), Messages.ListedByCategorydId)); }
public Category GetById(int id) { return(_categoryDal.Get(c => c.Id == id)); }
public async Task <Category> GetById(int id) { return(await _categoryDal.Get(c => c.Id == id)); }
//Select * from Categories where CategoryId = 3 public IDataResult <Category> GetById(int categoryId) { //throw new NotImplementedException(); //return _categoryDal.Get(c => c.CategoryId == categoryId); return(new SuccessDataResult <Category>(_categoryDal.Get(c => c.CategoryId == categoryId))); }
public Category GetById(int id) { return(_mapper.Map <Category>(_categoryDal.Get(x => x.Id == id))); }
public IDataResult <Category> GetById(int categoryId) { return(new SuccessDataResult <Category>(_categoryDal.Get(c => c.CategoryId == categoryId))); //Select * from Categories where CategoryId = 3 }
public IDataResult <Category> Get(int categoryId) => new SuccessDataResult <Category>(_categoryDal.Get(x => x.Id == categoryId));
public Category GetById(int CategoryId) { return(_categoryDal.Get(c => c.CategoryId == CategoryId)); }
public Category GetCategory(int?id) { return(_categoryDal.Get(c => c.Id == id)); }
public Category GetById(int categoryId) { return(_categoryDal.Get(c => c.CategoryId == categoryId)); // git veri tabanına c takma isim vererek bütün tabloyu gez benim verdiğim categoryId'deki kolonu bana getir }
public IDataResult <Category> GetById(int id) { return(new SuccessDataResult <Category>(_categoryDal.Get(p => p.CategoryId == id))); }
//Select * from Categories where CategoryId = categoryId public IDataResult <Category> GetById(int categoryId) { return(new SuccessDataResult <Category> (_categoryDal.Get(c => c.CategoryId == categoryId))); }
public Category GetCategory(int id) { return(_categoryDal.Get(p => p.CategoryID == id)); }
public Category GetbyId(int id) { return(_categoryDal.Get(x => x.CategoryID == id)); }
public Categories Get(Expression <Func <Categories, bool> > filter = null) { return(_categoryDal.Get(filter)); }