Пример #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);
        }