예제 #1
0
        public async Task Create(PictureCreate input)
        {
            var output = ObjectMapper.Map <Picture>(input);
            await _pictureManager.Create(output);

            await CurrentUnitOfWork.SaveChangesAsync();
        }
예제 #2
0
        public async Task <ActionResult> AddPicture(string fileName, string fileContentType)
        {
            PictureCreate _picture = new PictureCreate {
                FileName = fileName, FileContentType = fileContentType
            };
            await _pictureAppService.Create(_picture);

            return(View());
        }