Add contact feature

This commit is contained in:
2024-03-09 09:47:49 +00:00
parent 78bef4c113
commit a00a8d11ac
33 changed files with 1126 additions and 44 deletions

View File

@@ -0,0 +1,19 @@
using System.Net;
using Newtonsoft.Json;
namespace BeauFindlay.Shared.Contracts;
public sealed class ErrorResponse
{
[JsonProperty("code")]
public int Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; } = string.Empty;
public static ErrorResponse Generic => new ErrorResponse
{
Code = (int)HttpStatusCode.BadRequest,
Message = "Opps... something went wrong."
};
}