Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# appsetings
appsettings.Development.json

# User-specific files
*.rsuser
*.suo
Expand Down
84 changes: 0 additions & 84 deletions API/Controllers/LibraryBranchController.cs

This file was deleted.

5 changes: 4 additions & 1 deletion API/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=VULLE\\SQLEXPRESS; Database=Library-Management-System; Trusted_Connection=true; TrustServerCertificate=true;"
},
"JwtSettings": {
"SecretKey": "my_super_long_very_secret_key_etc"
"SecretKey": "my_super_long_very_secret_key_etc"
},
"Logging": {
"LogLevel": {
Expand Down
3 changes: 0 additions & 3 deletions API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=VULLE\\SQLEXPRESS; Database=CleanArchitecture; Trusted_Connection=true; TrustServerCertificate=true;"
},
"AllowedHosts": "*"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public async Task<OperationResult<GetBookCopyDto>> Handle(AddBookCopyCommand req
{
CopyId = Guid.NewGuid(),
BookId = request.Dto.BookId,
BranchId = request.Dto.BranchId,
Status = request.Dto.Status
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ public AddBookCopyCommandValidator()
RuleFor(x => x.Dto.BookId)
.NotEmpty()
.WithMessage("BookId is required.");

RuleFor(x => x.Dto.BranchId)
.NotEmpty()
.WithMessage("BranchId is required.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public async Task<OperationResult<GetBookCopyDto>> Handle(UpdateBookCopyCommand
{
CopyId = request.Dto.CopyId,
BookId = request.Dto.BookId,
BranchId = request.Dto.BranchId,
Status = request.Dto.Status,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ public UpdateBookCopyCommandValidator()
.NotEmpty()
.WithMessage("BookId is required.");

RuleFor(x => x.Dto.BranchId)
.NotEmpty()
.WithMessage("BranchId is required.");

RuleFor(x => x.Dto.Status)
.NotEmpty()
.WithMessage("Status is required.");
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion Application/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public static IServiceCollection AddApplication(this IServiceCollection services
services.AddAutoMapper(typeof(UserMappingProfiles).Assembly);
services.AddAutoMapper(typeof(BookMappingProfiles).Assembly);
services.AddAutoMapper(typeof(BookCopyMappingProfiles).Assembly);
services.AddAutoMapper(typeof(LibraryBranchMappingProfiles).Assembly);
services.AddAutoMapper(typeof(GenreMappingProfiles).Assembly);
services.AddAutoMapper(typeof(ReviewMappingProfiles).Assembly);
services.AddAutoMapper(typeof(PublisherMappingProfiles).Assembly);
Expand Down
1 change: 0 additions & 1 deletion Application/Dtos/BookCopyDtos/AddBookCopyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ namespace Application.Dtos.BookCopyDtos
public class AddBookCopyDto
{
public Guid BookId { get; set; }
public int BranchId { get; set; }
public string? Status { get; set; }
}
}
1 change: 0 additions & 1 deletion Application/Dtos/BookCopyDtos/GetBookCopyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ public class GetBookCopyDto
{
public Guid CopyId { get; set; }
public Guid BookId { get; set; }
public int BranchId { get; set; }
public string? Status { get; set; }
}
}
1 change: 0 additions & 1 deletion Application/Dtos/BookCopyDtos/UpdateBookCopyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ public class UpdateBookCopyDto
{
public Guid CopyId { get; set; }
public Guid BookId { get; set; }
public int BranchId { get; set; }
public string? Status { get; set; }
}
}
Loading
Loading