Further test on the WildcardModel

This commit is contained in:
Stoyan Zlatev
2023-05-03 08:21:21 +02:00
parent 6681c87bf9
commit 3f4950241f
22 changed files with 319 additions and 67 deletions
@@ -0,0 +1,23 @@
namespace LaaProductionWeb.Services.Models
{
using Newtonsoft.Json;
public class HttpResponseModel
{
public bool Succeeded { get; internal set; }
public string Content { get; internal set; }
public string Error { get; internal set; }
public T Deserialize<T>() where T : new ()
{
if (!string.IsNullOrWhiteSpace(this.Content))
{
return JsonConvert.DeserializeObject<T>(this.Content);
}
return new T();
}
}
}