December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's tighten up posting an answer:
public class AnswerPostFullRequest{ public int QuestionId { get; set; } public string Content { get; set; } public string UserId { get; set; } public string UserName { get; set; } public DateTime Created { get; set; }}
This contains all the properties that are needed by the data repository to save an answer.
public class AnswerPostRequest{ [Required] public int? QuestionId { get; set; } [Required] public string Content { get; set; }}
Read now
Unlock full access