add exception filter when user not connected default to needing authentication and apply anonymous to some actions add user in get requests add user relation in link, comment and vote signup and in are ok now!
19 lines
351 B
C#
19 lines
351 B
C#
using System;
|
|
|
|
namespace HN.Application
|
|
{
|
|
public sealed class LinkDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Url { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public string CreatedByName { get; set; }
|
|
public int UpVotes { get; set; }
|
|
public int DownVotes { get; set; }
|
|
|
|
public LinkDto()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |