Change AgeGroup ID type from int to string and add migration
Refactored AgeGroupController, AgeGroupService, and IAgeGroupService to use string IDs instead of int. Added initial Entity Framework migration and database files to support AltersGruppe with string primary key.
This commit is contained in:
@@ -6,9 +6,9 @@ namespace API.Repository.AgeGroup
|
||||
{
|
||||
public Task<List<AltersGruppe>> GetAllAsync();
|
||||
|
||||
public Task<AltersGruppe?> GetAsync(int id);
|
||||
public Task<AltersGruppe?> GetAsync(string id);
|
||||
public Task<AltersGruppe> CreateAsync(AltersGruppe altersGruppe);
|
||||
public Task<AltersGruppe?> DeleteAsync(int id);
|
||||
public Task<AltersGruppe?> UpdateAsync(int id, AltersGruppe altersGruppe);
|
||||
public Task<AltersGruppe?> DeleteAsync(string id);
|
||||
public Task<AltersGruppe?> UpdateAsync(string id, AltersGruppe altersGruppe);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user