Пример #1
0
        public MethodResult CanUploadNewImage(Flashcard flashcard, HttpPostedFileBase file)
        {
            if (flashcard == null)
            {
                return(new MethodResult("Flashcard does not exist :O!"));
            }

            return(uploadService.CanUpload(file, FileTypeEnum.FlashcardImage));
        }