19 lines
901 B
C#
19 lines
901 B
C#
using CatHasPawsContratcs.Infrastructure;
|
|
using CatHasPawsContratcs.ViewModels;
|
|
|
|
namespace CatHasPawsContratcs.AdapterContracts.OperationResponses;
|
|
|
|
public class BuyerOperationResponse : OperationResponse
|
|
{
|
|
public static BuyerOperationResponse OK(List<BuyerViewModel> data) => OK<BuyerOperationResponse, List<BuyerViewModel>>(data);
|
|
|
|
public static BuyerOperationResponse OK(BuyerViewModel data) => OK<BuyerOperationResponse, BuyerViewModel>(data);
|
|
|
|
public static BuyerOperationResponse NoContent() => NoContent<BuyerOperationResponse>();
|
|
|
|
public static BuyerOperationResponse BadRequest(string message) => BadRequest<BuyerOperationResponse>(message);
|
|
|
|
public static BuyerOperationResponse NotFound(string message) => NotFound<BuyerOperationResponse>(message);
|
|
|
|
public static BuyerOperationResponse InternalServerError(string message) => InternalServerError<BuyerOperationResponse>(message);
|
|
} |