Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

UploadController.cs 683B

123456789101112131415161718192021222324
  1. using Luticate2.Utils.Controllers;
  2. using Luticate2.Utils.Dbo.Basic;
  3. using Microsoft.Extensions.Options;
  4. using WebApiUtils.Business;
  5. using WebApiUtils.Dbo;
  6. namespace WebApiUtils.Controllers
  7. {
  8. public class UploadController : LuFsFilesCrudController<UploadBusiness>
  9. {
  10. private readonly AppConfigDbo _options;
  11. public UploadController(IOptions<LuUtilsOptionsDbo> luUtilsOptionsDbo, IOptions<AppConfigDbo> options,
  12. UploadBusiness business) : base(luUtilsOptionsDbo, business)
  13. {
  14. _options = options.Value;
  15. }
  16. protected override string GetBasePath()
  17. {
  18. return _options.UploadDir;
  19. }
  20. }
  21. }