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()); }
public async Task <bool> AddPhoto(ZabotaLicensesPhoto model) { await _licensesRepository.AddPhoto(model); return(true); }