Rename project to webAPI

This commit is contained in:
Julian
2023-10-21 14:23:54 +02:00
parent ae085b1466
commit c00f650c42
28 changed files with 49 additions and 49 deletions

View File

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.5.002.0 VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GerbilManager", "GerbilManagerWebAPI/GerbilManager.csproj", "{48875578-7112-4F6F-A4C0-F1E7637B513D}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GerbilManagerWebAPI", "GerbilManagerWebAPI\GerbilManagerWebAPI.csproj", "{48875578-7112-4F6F-A4C0-F1E7637B513D}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@@ -1,4 +1,4 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
public class ApplicationContext : DbContext public class ApplicationContext : DbContext

View File

@@ -1,13 +1,13 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
using GerbilManager.Repositories; using GerbilManagerWebAPI.Repositories;
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using GerbilManager.Converter; using GerbilManagerWebAPI.Converter;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System.Xml; using System.Xml;
namespace GerbilManager.Controllers namespace GerbilManagerWebAPI.Controllers
{ {
[ApiController] [ApiController]
[Route("breeders")] [Route("breeders")]

View File

@@ -1,11 +1,11 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
using GerbilManager.Repositories; using GerbilManagerWebAPI.Repositories;
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using GerbilManager.Converter; using GerbilManagerWebAPI.Converter;
namespace GerbilManager.Controllers namespace GerbilManagerWebAPI.Controllers
{ {
[ApiController] [ApiController]
[Route("gerbils")] [Route("gerbils")]

View File

@@ -1,13 +1,13 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
using GerbilManager.Repositories; using GerbilManagerWebAPI.Repositories;
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using GerbilManager.Converter; using GerbilManagerWebAPI.Converter;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System.Xml; using System.Xml;
namespace GerbilManager.Controllers namespace GerbilManagerWebAPI.Controllers
{ {
[ApiController] [ApiController]
[Route("litters")] [Route("litters")]

View File

@@ -1,7 +1,7 @@
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Converter namespace GerbilManagerWebAPI.Converter
{ {
public static class BreederConverterExtension public static class BreederConverterExtension
{ {

View File

@@ -1,7 +1,7 @@
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Converter namespace GerbilManagerWebAPI.Converter
{ {
public static class GerbilConverterExtension public static class GerbilConverterExtension
{ {

View File

@@ -1,7 +1,7 @@
using GerbilManager.Dtos; using GerbilManagerWebAPI.Dtos;
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Converter namespace GerbilManagerWebAPI.Converter
{ {
public static class LitterConverterExtension public static class LitterConverterExtension
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record BreederDto public record BreederDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record CreateBreederDto public record CreateBreederDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record CreateGerbilDto public record CreateGerbilDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record CreateLitterDto public record CreateLitterDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public enum GenderDto public enum GenderDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record GerbilDto public record GerbilDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record LitterDto public record LitterDto
{ {

View File

@@ -1,5 +1,5 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record UpdateBreederDto public record UpdateBreederDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record UpdateGerbilDto public record UpdateGerbilDto
{ {

View File

@@ -1,5 +1,5 @@
namespace GerbilManager.Dtos namespace GerbilManagerWebAPI.Dtos
{ {
public record UpdateLitterDto public record UpdateLitterDto
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Models namespace GerbilManagerWebAPI.Models
{ {
public record Breeder public record Breeder
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Models namespace GerbilManagerWebAPI.Models
{ {
public enum Gender public enum Gender
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Models namespace GerbilManagerWebAPI.Models
{ {
public record Gerbil public record Gerbil
{ {

View File

@@ -1,4 +1,4 @@
namespace GerbilManager.Models namespace GerbilManagerWebAPI.Models
{ {
public record Litter public record Litter
{ {

View File

@@ -1,4 +1,4 @@
using GerbilManager.Repositories; using GerbilManagerWebAPI.Repositories;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);

View File

@@ -1,6 +1,6 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Repositories namespace GerbilManagerWebAPI.Repositories
{ {
public interface IBreederRepository public interface IBreederRepository
{ {

View File

@@ -1,6 +1,6 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Repositories namespace GerbilManagerWebAPI.Repositories
{ {
public interface IGerbilRepository public interface IGerbilRepository
{ {

View File

@@ -1,6 +1,6 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Repositories namespace GerbilManagerWebAPI.Repositories
{ {
public interface ILitterRepository public interface ILitterRepository
{ {

View File

@@ -1,6 +1,6 @@
using GerbilManager.Models; using GerbilManagerWebAPI.Models;
namespace GerbilManager.Repositories namespace GerbilManagerWebAPI.Repositories
{ {
public class InMemGerbilRepository : IGerbilRepository public class InMemGerbilRepository : IGerbilRepository
{ {