Added endpoint and functionality for getting, retrieving and deleting bookmarks, and for adding and removing tags for a bookmark

This commit is contained in:
Carl Tibule
2023-01-28 00:48:48 -06:00
parent 08823de474
commit b9cd6b3c6a
34 changed files with 1148 additions and 42 deletions

View File

@ -0,0 +1,22 @@
using YABA.Common.DTOs;
using YABA.Common.Extensions;
namespace YABA.API.ViewModels
{
public class GenericResponse<T>
{
public T Entry { get; set; }
public int StatusId { get; set; }
public string StatusName { get; set; }
public string StatusMessage { get; set; }
public GenericResponse(CrudResultDTO<T> value)
{
// TODO: Find a way to bring this to AutoMapper
Entry = value.Entry;
StatusId = (int)value.CrudResult;
StatusName = value.CrudResult.ToString();
StatusMessage = value.CrudResult.GetDisplayName();
}
}
}