Spaces:
Sleeping
Sleeping
Yuyuqt
feat: add user management, book management, categories management, membership management, and borrowing management
87c9973 Download LibraryManagement.Backend/Features/Borrowing/BorrowingModels.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Borrowing/BorrowingModels.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement@93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Borrowing/BorrowingModels.cs
-
curl -L -o BorrowingModels.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Borrowing/BorrowingModels.cs
738 Bytes
| using System; | |
| namespace LibraryManagement.Backend.Features.Borrowings | |
| { | |
| public class BorrowingDto | |
| { | |
| public int Id { get; set; } | |
| public int UserId { get; set; } | |
| public string UserEmail { get; set; } = string.Empty; | |
| public int BookId { get; set; } | |
| public string BookTitle { get; set; } = string.Empty; | |
| public DateTime BorrowDate { get; set; } | |
| public DateTime DueDate { get; set; } | |
| public DateTime? ReturnDate { get; set; } | |
| public string Status { get; set; } = string.Empty; | |
| public decimal FineAmount { get; set; } | |
| public bool IsFinePaid { get; set; } | |
| } | |
| public class BorrowRequest | |
| { | |
| public int BookId { get; set; } | |
| } | |
| } | |