Пример #1
0
        public Category Add(Category category, HttpPostedFileBase Image)
        {
            if (Image != null)
            {
                ImageDetail imagePath = _fileUploadService.ThumbImageSave(Image, "Category", 225, 225);
                category.Image      = imagePath.Image;
                category.ThumbImage = imagePath.ThumbImage;
            }

            return(_categoryDal.Add(category));
        }