Add CRUDs and validation/controllers

This commit is contained in:
lumijiez
2025-06-17 15:16:02 +03:00
parent 922021d088
commit 40906bea78
48 changed files with 653 additions and 27 deletions

View File

@@ -1,12 +0,0 @@
namespace Imprink.Application.Products.Dtos;
public class PagedResultDto<T>
{
public IEnumerable<T> Items { get; set; } = new List<T>();
public int TotalCount { get; set; }
public int PageNumber { get; set; }
public int PageSize { get; set; }
public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize);
public bool HasPreviousPage => PageNumber > 1;
public bool HasNextPage => PageNumber < TotalPages;
}