Modified API returned data format to ditch use of GenericResponse wrapper

This commit is contained in:
Carl Tibule
2023-02-08 18:56:06 -06:00
parent 7e48e097c0
commit 0413abf587
11 changed files with 114 additions and 126 deletions

View File

@ -9,8 +9,6 @@ namespace YABA.Common.DTOs.Bookmarks
public string? Description { get; set; }
public string? Note { get; set; }
public bool IsHidden { get; set; }
[Required]
public string Url { get; set; }
public string? Url { get; set; }
}
}

View File

@ -1,12 +0,0 @@
using YABA.Common.Extensions;
using YABA.Common.Lookups;
namespace YABA.Common.DTOs
{
public class CrudResultDTO<T>
{
public CrudResultLookup CrudResult { get; set; }
public T Entry { get; set; }
public bool IsSuccessful => CrudResult.IsCrudResultSuccessful();
}
}