25 lines
1019 B
C#
25 lines
1019 B
C#
using CandyHouseContracts.Infrastructure;
|
|
using CandyHouseContracts.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CandyHouseContracts.AdapterContracts.OperationResponses;
|
|
|
|
public class PostOperationResponse : OperationResponse
|
|
{
|
|
public static PostOperationResponse OK(List<PostViewModel> data) => OK<PostOperationResponse, List<PostViewModel>>(data);
|
|
|
|
public static PostOperationResponse OK(PostViewModel data) => OK<PostOperationResponse, PostViewModel>(data);
|
|
|
|
public static PostOperationResponse NoContent() => NoContent<PostOperationResponse>();
|
|
|
|
public static PostOperationResponse NotFound(string message) => NotFound<PostOperationResponse>(message);
|
|
|
|
public static PostOperationResponse BadRequest(string message) => BadRequest<PostOperationResponse>(message);
|
|
|
|
public static PostOperationResponse InternalServerError(string message) => InternalServerError<PostOperationResponse>(message);
|
|
}
|