skip to Main Content

EF Core 6 Paging Error: OFFSET must not be negative – Asp.net

I'm doing pagination with EF core 6 and dotnet core. public async Task<IEnumerable<CommentResponse>> GetCommentOfPostAsync(Guid PostId, int PageNumber, int PageSize) => await _context.Comments .Include(comment => comment.User) .OrderBy(comment => comment.CommentId) .Select( data => new CommentResponse { CommentId = data.CommentId, UserId = data.UserId,…

VIEW QUESTION

how to link HTML with C# – Asp.net

I've tried to do something from another post, didn't work. How do I combine those two codes? HTML CODE: @using Microsoft.AspNetCore.Identity @using SvivaTeamVersion3.Areas.Identity.Data @inject SignInManager<ApplicationUser> SignInManager @inject UserManager<ApplicationUser> UserManager <p><button onclick="" class="w3-button w3-padding-large w3-white w3-border"><b>ADD NEW REPORT ยป</b></button></p> Code that…

VIEW QUESTION
Back To Top
Search