예제 #1
0
        public ICollection <Category> GetAllCategorys()
        {
            List <BLL.Models.Category> list = new List <BLL.Models.Category>();

            foreach (var item in _dal.GetAllCategorys())
            {
                var category = new BLL.Models.Category
                {
                    Id          = item.Id,
                    Name        = item.Name,
                    Desctiption = item.Desctiption,
                    Image       = item.Image
                };
                list.Add(category);
            }
            return(list);
        }