diff --git a/api/src/Kurs.Platform.Application.Contracts/Branch/BranchSeedResultDto.cs b/api/src/Kurs.Platform.Application.Contracts/Branch/BranchSeedResultDto.cs new file mode 100644 index 00000000..a2b041e7 --- /dev/null +++ b/api/src/Kurs.Platform.Application.Contracts/Branch/BranchSeedResultDto.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using System.Linq; + +namespace Kurs.Platform.Branchs; + +public class BranchSeedResultDto +{ + public bool Success { get; set; } + public string Message { get; set; } + public int TotalInsertedCount => Details.Sum(x => x.InsertedCount); + public List Details { get; set; } = new(); +} diff --git a/api/src/Kurs.Platform.Application.Contracts/Branch/SeedDetailDto.cs b/api/src/Kurs.Platform.Application.Contracts/Branch/SeedDetailDto.cs new file mode 100644 index 00000000..a63b0de7 --- /dev/null +++ b/api/src/Kurs.Platform.Application.Contracts/Branch/SeedDetailDto.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; + +namespace Kurs.Platform.Branchs; + +public class SeedDetailDto +{ + public string EntityName { get; set; } = string.Empty; // Örn: "RegistrationType" + public int InsertedCount { get; set; } + public List InsertedItems { get; set; } = new(); // Eklenen kayıtların isimleri + public List Warnings { get; set; } = new(); // Varsa uyarılar + public List Errors { get; set; } = new(); // Varsa hatalar +} \ No newline at end of file diff --git a/api/src/Kurs.Platform.Application/Branch/BranchAppService.cs b/api/src/Kurs.Platform.Application/Branch/BranchAppService.cs index 3233895e..86a34ecd 100644 --- a/api/src/Kurs.Platform.Application/Branch/BranchAppService.cs +++ b/api/src/Kurs.Platform.Application/Branch/BranchAppService.cs @@ -1,338 +1,35 @@ using System; -using System.IO; -using System.Text.Json; -using System.Threading.Tasks; -using Kurs.Platform.Entities; -using Kurs.Platform.Seeds; -using Microsoft.Extensions.Configuration; -using Volo.Abp.Data; -using Volo.Abp.Domain.Repositories; -using Microsoft.EntityFrameworkCore; -using Kurs.Languages.Entities; -using Kurs.Settings.Entities; -using System.Collections.Generic; using System.Linq; -using Microsoft.AspNetCore.Authorization; +using System.Threading.Tasks; +using Kurs.Platform; +using Kurs.Platform.Branchs; +using Kurs.Platform.Entities; +using Volo.Abp.Domain.Repositories; -namespace Kurs.Platform.Branchs; - -public class BranchSeedResultDto -{ - public bool Success { get; set; } - public string Message { get; set; } - public int TotalInsertedCount => Details.Sum(x => x.InsertedCount); - public List Details { get; set; } = new(); -} - -public class SeedDetailDto -{ - public string EntityName { get; set; } = string.Empty; // Örn: "RegistrationType" - public int InsertedCount { get; set; } - public List InsertedItems { get; set; } = new(); // Eklenen kayıtların isimleri - public List Warnings { get; set; } = new(); // Varsa uyarılar - public List Errors { get; set; } = new(); // Varsa hatalar -} - -[Authorize] public class BranchAppService : PlatformAppService { private readonly IRepository _branchRepository; - private readonly IRepository _languages; - private readonly IRepository _languageKey; - private readonly IRepository _languagesText; - private readonly IRepository _dataSources; - private readonly IRepository _settings; - private readonly IRepository _registrationTypeRepository; - private readonly IRepository _registrationMethodRepository; - private readonly IRepository _classTypeRepository; - private readonly IRepository _classRepository; - private readonly IRepository _levelRepository; - private readonly IRepository _lessonPeriodRepository; - private readonly IRepository _scheduleRepository; + private readonly BranchSeedManager _branchSeedManager; public BranchAppService( IRepository branchRepository, - IRepository languages, - IRepository languageKey, - IRepository languagesText, - IRepository dataSource, - IRepository settings, - IRepository scheduleRepository, - IRepository lessonPeriodRepository, - IRepository registrationTypeRepository, - IRepository registrationMethodRepository, - IRepository classTypeRepository, - IRepository classRepository, - IRepository levelRepository - ) + BranchSeedManager branchSeedManager) { _branchRepository = branchRepository; - _languages = languages; - _languageKey = languageKey; - _languagesText = languagesText; - _dataSources = dataSource; - _settings = settings; - _registrationTypeRepository = registrationTypeRepository; - _registrationMethodRepository = registrationMethodRepository; - _classTypeRepository = classTypeRepository; - _classRepository = classRepository; - _levelRepository = levelRepository; - _lessonPeriodRepository = lessonPeriodRepository; - _scheduleRepository = scheduleRepository; + _branchSeedManager = branchSeedManager; } public async Task SeedAsync(Guid branchId) { - var settings = await _settings.GetListAsync(); - var dataSources = await _dataSources.GetListAsync(); - var languages = await _languages.GetListAsync(); - var keys = await _languageKey.GetListAsync(); - var texts = await _languagesText.GetListAsync(); + var branch = await _branchRepository.FirstOrDefaultAsync(x => x.Id == branchId); + if (branch == null) + return new BranchSeedResultDto { Success = false, Message = "Branch not found." }; - var result = new BranchSeedResultDto(); - var context = new DataSeedContext(branchId); - - try + using (CurrentTenant.Change(branch.TenantId)) { - var branch = await _branchRepository.FirstOrDefaultAsync(x => x.Id == branchId); - if (branch == null) - { - result.Success = false; - result.Message = "Branch not found."; - return result; - } + var result = await _branchSeedManager.SeedRecordsAsync(branch.TenantId, branchId); - var tenantId = branch.TenantId; - var assemblyPath = Path.GetDirectoryName(typeof(BranchAppService).Assembly.Location)!; - var basePath = Path.Combine(assemblyPath, "Branch", "Seeds"); - - var configuration = new ConfigurationBuilder() - .SetBasePath(basePath) - .AddJsonFile("BranchData.json") - .AddJsonFile($"BranchData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json", optional: true) - .Build(); - - var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true }; - var items = configuration.Get(); - - if (items == null) - { - result.Success = false; - result.Message = "BranchData.json okunamadı veya format hatalı."; - return result; - } - - // Yardımcı fonksiyon: kolay log ekleme - SeedDetailDto CreateLog(string entity) => - new() - { - EntityName = entity, - InsertedCount = 0, - InsertedItems = [] - }; - - - var registrationTypeLog = CreateLog(nameof(RegistrationType)); - foreach (var item in items.RegistrationTypes) - { - var exists = await _registrationTypeRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - await _registrationTypeRepository.InsertAsync(new RegistrationType - { - TenantId = tenantId, - BranchId = branchId, - Name = item.Name, - Status = item.Status - }, autoSave: true); - - registrationTypeLog.InsertedCount++; - registrationTypeLog.InsertedItems.Add(item.Name); - } - } - result.Details.Add(registrationTypeLog); - - var registrationMethodLog = CreateLog(nameof(RegistrationMethod)); - foreach (var item in items.RegistrationMethods) - { - var exists = await _registrationMethodRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - var registrationType = await _registrationTypeRepository.FirstOrDefaultAsync(x => x.Name == item.RegistrationTypeName); - if (registrationType != null) - { - await _registrationMethodRepository.InsertAsync(new RegistrationMethod - { - TenantId = tenantId, - BranchId = branchId, - RegistrationTypeId = registrationType.Id, - Name = item.Name, - Status = item.Status - }); - - registrationMethodLog.InsertedCount++; - registrationMethodLog.InsertedItems.Add(item.Name); - } - } - } - result.Details.Add(registrationMethodLog); - - var classTypeLog = CreateLog(nameof(ClassType)); - foreach (var item in items.ClassTypes) - { - var exists = await _classTypeRepository.AnyAsync(x => x.Name == item.Name); - - if (!exists) - { - var registrationType = await _registrationTypeRepository.FirstOrDefaultAsync(x => x.Name == item.RegistrationTypeName && x.BranchId == branchId); - if (registrationType != null) - { - await _classTypeRepository.InsertAsync(new ClassType - { - TenantId = tenantId, - BranchId = branchId, - RegistrationTypeId = registrationType.Id, - Name = item.Name, - MinStudentCount = item.MinStudentCount, - MaxStudentCount = item.MaxStudentCount, - Status = item.Status - }, autoSave: true); - - classTypeLog.InsertedCount++; - classTypeLog.InsertedItems.Add(item.Name); - } - } - } - result.Details.Add(classTypeLog); - - var classLog = CreateLog(nameof(Class)); - foreach (var item in items.Classes) - { - var exists = await _classRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - var classType = await _classTypeRepository.FirstOrDefaultAsync(x => x.Name == item.ClassTypeName); - if (classType != null) - { - await _classRepository.InsertAsync(new() - { - TenantId = tenantId, - BranchId = branchId, - ClassTypeId = classType.Id, - Name = item.Name, - Status = item.Status, - }); - - classLog.InsertedCount++; - classLog.InsertedItems.Add(item.Name); - } - } - } - result.Details.Add(classLog); - - var levelLog = CreateLog(nameof(Level)); - foreach (var item in items.Levels) - { - var exists = await _levelRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - var classType = await _classTypeRepository.FirstOrDefaultAsync(x => x.Name == item.ClassTypeName); - if (classType != null) - { - await _levelRepository.InsertAsync(new Level - { - TenantId = tenantId, - BranchId = branchId, - ClassTypeId = classType.Id, - Name = item.Name, - LevelType = item.LevelType, - LessonCount = item.LessonCount, - Status = item.Status, - LessonDuration = item.LessonDuration, - MonthlyPaymentRate = item.MonthlyPaymentRate - }); - - levelLog.InsertedCount++; - levelLog.InsertedItems.Add(item.Name); - } - } - } - result.Details.Add(levelLog); - - var lessonPeriodLog = CreateLog(nameof(LessonPeriod)); - foreach (var item in items.LessonPeriods) - { - var exists = await _lessonPeriodRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - await _lessonPeriodRepository.InsertAsync(new() - { - TenantId = tenantId, - BranchId = branchId, - Name = item.Name, - Day = item.Day, - Lesson1 = item.Lesson1, - Lesson2 = item.Lesson2, - Lesson3 = item.Lesson3, - Lesson4 = item.Lesson4, - }); - - lessonPeriodLog.InsertedCount++; - lessonPeriodLog.InsertedItems.Add(item.Name); - } - } - result.Details.Add(lessonPeriodLog); - - var scheduleLog = CreateLog(nameof(Schedule)); - foreach (var item in items.Schedules) - { - var exists = await _scheduleRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); - - if (!exists) - { - await _scheduleRepository.InsertAsync(new() - { - TenantId = tenantId, - BranchId = branchId, - Name = item.Name, - Status = item.Status, - StartTime = item.StartTime, - EndTime = item.EndTime, - LessonMinute = item.LessonMinute, - LessonBreakMinute = item.LessonBreakMinute, - LessonCount = item.LessonCount, - LunchTime = item.LunchTime, - LunchMinute = item.LunchMinute, - IncludeLunch = item.IncludeLunch, - Monday = item.Monday, - Tuesday = item.Tuesday, - Wednesday = item.Wednesday, - Thursday = item.Thursday, - Friday = item.Friday, - Saturday = item.Saturday, - Sunday = item.Sunday, - }); - - scheduleLog.InsertedCount++; - scheduleLog.InsertedItems.Add(item.Name); - } - } - result.Details.Add(scheduleLog); - - result.Success = true; - result.Message = $"Seed işlemi başarıyla tamamlandı. Toplam {result.TotalInsertedCount} kayıt eklendi."; - return result; - } - catch (Exception ex) - { - result.Success = false; - result.Message = $"Hata: {ex.Message}"; - return result; + return ObjectMapper.Map(result); } } } diff --git a/api/src/Kurs.Platform.Application/Branch/BranchAutoMapperProfile.cs b/api/src/Kurs.Platform.Application/Branch/BranchAutoMapperProfile.cs new file mode 100644 index 00000000..34569bbc --- /dev/null +++ b/api/src/Kurs.Platform.Application/Branch/BranchAutoMapperProfile.cs @@ -0,0 +1,11 @@ +using AutoMapper; +using Kurs.Platform.Branchs; + +public class BranchAutoMapperProfile : Profile +{ + public BranchAutoMapperProfile() + { + CreateMap(); + CreateMap(); + } +} diff --git a/api/src/Kurs.Platform.Application/Kurs.Platform.Application.csproj b/api/src/Kurs.Platform.Application/Kurs.Platform.Application.csproj index 71dbda54..4a184c1b 100644 --- a/api/src/Kurs.Platform.Application/Kurs.Platform.Application.csproj +++ b/api/src/Kurs.Platform.Application/Kurs.Platform.Application.csproj @@ -12,13 +12,6 @@ - - - Always - PreserveNewest - - - diff --git a/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs b/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs new file mode 100644 index 00000000..87b5b740 --- /dev/null +++ b/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs @@ -0,0 +1,281 @@ +using System; +using System.IO; +using System.Threading.Tasks; +using Microsoft.Extensions.Configuration; +using System.Text.Json; +using Volo.Abp.Domain.Services; +using Volo.Abp.Domain.Repositories; +using Kurs.Platform.Entities; + +namespace Kurs.Platform.Branchs; + +public class BranchSeedManager : DomainService +{ + private readonly IRepository _branchRepository; + private readonly IRepository _registrationTypeRepository; + private readonly IRepository _registrationMethodRepository; + private readonly IRepository _classTypeRepository; + private readonly IRepository _classRepository; + private readonly IRepository _levelRepository; + private readonly IRepository _lessonPeriodRepository; + private readonly IRepository _scheduleRepository; + + public BranchSeedManager( + IRepository branchRepository, + IRepository registrationTypeRepository, + IRepository registrationMethodRepository, + IRepository classTypeRepository, + IRepository classRepository, + IRepository levelRepository, + IRepository lessonPeriodRepository, + IRepository scheduleRepository) + { + _branchRepository = branchRepository; + _registrationTypeRepository = registrationTypeRepository; + _registrationMethodRepository = registrationMethodRepository; + _classTypeRepository = classTypeRepository; + _classRepository = classRepository; + _levelRepository = levelRepository; + _lessonPeriodRepository = lessonPeriodRepository; + _scheduleRepository = scheduleRepository; + } + + public async Task SeedRecordsAsync(Guid? tenantId, Guid branchId) + { + var result = new BranchSeedResult(); + + try + { + var assemblyPath = Path.GetDirectoryName(typeof(BranchSeedManager).Assembly.Location)!; + var basePath = Path.Combine(assemblyPath, "Branch", "Seeds"); + + var configuration = new ConfigurationBuilder() + .SetBasePath(basePath) + .AddJsonFile("BranchData.json") + .AddJsonFile($"BranchData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json", optional: true) + .Build(); + + var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true }; + var items = configuration.Get(); + + if (items == null) + { + result.Success = false; + result.Message = "BranchData.json okunamadı veya format hatalı."; + return result; + } + + // Yardımcı fonksiyon: kolay log ekleme + BranchSeedDetail CreateLog(string entity) => + new() + { + EntityName = entity, + InsertedCount = 0, + InsertedItems = [] + }; + + + var registrationTypeLog = CreateLog(nameof(RegistrationType)); + foreach (var item in items.RegistrationTypes) + { + var exists = await _registrationTypeRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + await _registrationTypeRepository.InsertAsync(new RegistrationType + { + TenantId = tenantId, + BranchId = branchId, + Name = item.Name, + Status = item.Status + }, autoSave: true); + + registrationTypeLog.InsertedCount++; + registrationTypeLog.InsertedItems.Add(item.Name); + } + } + result.Details.Add(registrationTypeLog); + + var registrationMethodLog = CreateLog(nameof(RegistrationMethod)); + foreach (var item in items.RegistrationMethods) + { + var exists = await _registrationMethodRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + var registrationType = await _registrationTypeRepository.FirstOrDefaultAsync(x => x.Name == item.RegistrationTypeName); + if (registrationType != null) + { + await _registrationMethodRepository.InsertAsync(new RegistrationMethod + { + TenantId = tenantId, + BranchId = branchId, + RegistrationTypeId = registrationType.Id, + Name = item.Name, + Status = item.Status + }); + + registrationMethodLog.InsertedCount++; + registrationMethodLog.InsertedItems.Add(item.Name); + } + } + } + result.Details.Add(registrationMethodLog); + + var classTypeLog = CreateLog(nameof(ClassType)); + foreach (var item in items.ClassTypes) + { + var exists = await _classTypeRepository.AnyAsync(x => x.Name == item.Name); + + if (!exists) + { + var registrationType = await _registrationTypeRepository.FirstOrDefaultAsync(x => x.Name == item.RegistrationTypeName && x.BranchId == branchId); + if (registrationType != null) + { + await _classTypeRepository.InsertAsync(new ClassType + { + TenantId = tenantId, + BranchId = branchId, + RegistrationTypeId = registrationType.Id, + Name = item.Name, + MinStudentCount = item.MinStudentCount, + MaxStudentCount = item.MaxStudentCount, + Status = item.Status + }, autoSave: true); + + classTypeLog.InsertedCount++; + classTypeLog.InsertedItems.Add(item.Name); + } + } + } + result.Details.Add(classTypeLog); + + var classLog = CreateLog(nameof(Class)); + foreach (var item in items.Classes) + { + var exists = await _classRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + var classType = await _classTypeRepository.FirstOrDefaultAsync(x => x.Name == item.ClassTypeName); + if (classType != null) + { + await _classRepository.InsertAsync(new() + { + TenantId = tenantId, + BranchId = branchId, + ClassTypeId = classType.Id, + Name = item.Name, + Status = item.Status, + }); + + classLog.InsertedCount++; + classLog.InsertedItems.Add(item.Name); + } + } + } + result.Details.Add(classLog); + + var levelLog = CreateLog(nameof(Level)); + foreach (var item in items.Levels) + { + var exists = await _levelRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + var classType = await _classTypeRepository.FirstOrDefaultAsync(x => x.Name == item.ClassTypeName); + if (classType != null) + { + await _levelRepository.InsertAsync(new Level + { + TenantId = tenantId, + BranchId = branchId, + ClassTypeId = classType.Id, + Name = item.Name, + LevelType = item.LevelType, + LessonCount = item.LessonCount, + Status = item.Status, + LessonDuration = item.LessonDuration, + MonthlyPaymentRate = item.MonthlyPaymentRate + }); + + levelLog.InsertedCount++; + levelLog.InsertedItems.Add(item.Name); + } + } + } + result.Details.Add(levelLog); + + var lessonPeriodLog = CreateLog(nameof(LessonPeriod)); + foreach (var item in items.LessonPeriods) + { + var exists = await _lessonPeriodRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + await _lessonPeriodRepository.InsertAsync(new() + { + TenantId = tenantId, + BranchId = branchId, + Name = item.Name, + Day = item.Day, + Lesson1 = item.Lesson1, + Lesson2 = item.Lesson2, + Lesson3 = item.Lesson3, + Lesson4 = item.Lesson4, + }); + + lessonPeriodLog.InsertedCount++; + lessonPeriodLog.InsertedItems.Add(item.Name); + } + } + result.Details.Add(lessonPeriodLog); + + var scheduleLog = CreateLog(nameof(Schedule)); + foreach (var item in items.Schedules) + { + var exists = await _scheduleRepository.AnyAsync(x => x.Name == item.Name && x.BranchId == branchId); + + if (!exists) + { + await _scheduleRepository.InsertAsync(new() + { + TenantId = tenantId, + BranchId = branchId, + Name = item.Name, + Status = item.Status, + StartTime = item.StartTime, + EndTime = item.EndTime, + LessonMinute = item.LessonMinute, + LessonBreakMinute = item.LessonBreakMinute, + LessonCount = item.LessonCount, + LunchTime = item.LunchTime, + LunchMinute = item.LunchMinute, + IncludeLunch = item.IncludeLunch, + Monday = item.Monday, + Tuesday = item.Tuesday, + Wednesday = item.Wednesday, + Thursday = item.Thursday, + Friday = item.Friday, + Saturday = item.Saturday, + Sunday = item.Sunday, + }); + + scheduleLog.InsertedCount++; + scheduleLog.InsertedItems.Add(item.Name); + } + } + result.Details.Add(scheduleLog); + + result.Success = true; + result.Message = $"Seed işlemi başarıyla tamamlandı. Toplam {result.TotalInsertedCount} kayıt eklendi."; + return result; + } + catch (Exception ex) + { + result.Success = false; + result.Message = $"Hata: {ex.Message}"; + return result; + } + } +} diff --git a/api/src/Kurs.Platform.Domain/Branch/BranchSeedResult.cs b/api/src/Kurs.Platform.Domain/Branch/BranchSeedResult.cs new file mode 100644 index 00000000..9971cd3e --- /dev/null +++ b/api/src/Kurs.Platform.Domain/Branch/BranchSeedResult.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; +using System.Linq; + +namespace Kurs.Platform.Branchs; + +public class BranchSeedResult +{ + public bool Success { get; set; } + public string Message { get; set; } = string.Empty; + public List Details { get; set; } = new(); + public int TotalInsertedCount => Details.Sum(x => x.InsertedCount); +} + +public class BranchSeedDetail +{ + public string EntityName { get; set; } = string.Empty; + public int InsertedCount { get; set; } + public List InsertedItems { get; set; } = new(); + public List Warnings { get; set; } = new(); + public List Errors { get; set; } = new(); +} diff --git a/api/src/Kurs.Platform.Application/Branch/BranchSeederDto.cs b/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs similarity index 98% rename from api/src/Kurs.Platform.Application/Branch/BranchSeederDto.cs rename to api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs index b22d1e68..ad8ed69f 100644 --- a/api/src/Kurs.Platform.Application/Branch/BranchSeederDto.cs +++ b/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Kurs.Platform.Seeds; +namespace Kurs.Platform.Branchs; public class BranchSeederDto { diff --git a/api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.Dev.json b/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.Dev.json similarity index 100% rename from api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.Dev.json rename to api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.Dev.json diff --git a/api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.Production.json b/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.Production.json similarity index 100% rename from api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.Production.json rename to api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.Production.json diff --git a/api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.json b/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json similarity index 100% rename from api/src/Kurs.Platform.Application/Branch/Seeds/BranchData.json rename to api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json diff --git a/api/src/Kurs.Platform.Domain/Kurs.Platform.Domain.csproj b/api/src/Kurs.Platform.Domain/Kurs.Platform.Domain.csproj index 4c975bb8..2585b30b 100644 --- a/api/src/Kurs.Platform.Domain/Kurs.Platform.Domain.csproj +++ b/api/src/Kurs.Platform.Domain/Kurs.Platform.Domain.csproj @@ -1,12 +1,12 @@  - + - + net9.0 Kurs.Platform - + @@ -15,7 +15,14 @@ - + + + + Always + PreserveNewest + + + @@ -31,5 +38,5 @@ - +