Updated API Interface

Updated API Interface to incorporate a new response model in order to simplify responses and make error handling easier.
This commit is contained in:
luke-else
2021-11-07 21:30:31 +00:00
parent 34efdb1cec
commit d3970fba18
2 changed files with 50 additions and 28 deletions

16
Models/ResponseModel.cs Normal file
View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EFB.Models
{
public class ResponseModel
{
//Object should be of known type from sender
public object Result { get; set; } = null;
public string Error { get; set; } = null;
}
}