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

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