예제 #1
0
        public Task AddPhoto(ZabotaLicensesPhoto model)
        {
            var path = _uploadPath.GetPath();

            _appDBContext.LicensesPhoto.Add(new Entities.LicensesPhoto
            {
                Path       = "~/" + path.BaseImagePath + "/" + path.Licenses + "/" + model.Path,
                LicensesId = model.LicensesId
            });
            return(_appDBContext.SaveChangesAsync());
        }
예제 #2
0
        public async Task <bool> AddPhoto(ZabotaLicensesPhoto model)
        {
            await _licensesRepository.AddPhoto(model);

            return(true);
        }