Exemple #1
0
        private List <Machine> GetMachines()
        {
            int ctgId = GetCurrentCtgId();

            if (ctgId == _categoryService.GetIdByName("Hepsi"))
            {
                return(_machineService.GetAll());
            }
            else
            {
                return(_machineService.GetByCategoryId(ctgId));
            }
        }