forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
25 lines
1022 B
C#
25 lines
1022 B
C#
using MagicCarpetContracts.Infrastructure;
|
|
using MagicCarpetContracts.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagicCarpetContracts.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);
|
|
}
|