Skip to content

Commit

Permalink
move PrivateMessageModel, remove unused properties and use init setters
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Mar 23, 2024
1 parent 5f2c0da commit 3175750
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
16 changes: 0 additions & 16 deletions TASVideos/Models/PrivateMessageModel.cs

This file was deleted.

2 changes: 1 addition & 1 deletion TASVideos/Pages/Messages/Create.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Mvc.Rendering;
using TASVideos.Core.Services;
using TASVideos.Data.Entity;
using TASVideos.Models;
using TASVideos.Pages.Messages.Models;

namespace TASVideos.Pages.Messages;

Expand Down
13 changes: 13 additions & 0 deletions TASVideos/Pages/Messages/Models/PrivateMessageModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace TASVideos.Pages.Messages.Models;

public class PrivateMessageModel
{
public string? Subject { get; init; }
public DateTime SentOn { get; init; }
public string Text { get; init; } = "";
public int FromUserId { get; init; }
public string FromUserName { get; init; } = "";

public int ToUserId { get; init; }
public string ToUserName { get; init; } = "";
}

0 comments on commit 3175750

Please sign in to comment.