forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using MagicCarpetContracts.DataModels;
|
|
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 AgencyOperationResponse : OperationResponse
|
|
{
|
|
public static AgencyOperationResponse OK(List<AgencyViewModel> data) => OK<AgencyOperationResponse, List<AgencyViewModel>>(data);
|
|
|
|
public static AgencyOperationResponse OK(AgencyViewModel data) => OK<AgencyOperationResponse, AgencyViewModel>(data);
|
|
|
|
public static AgencyOperationResponse NoContent() => NoContent<AgencyOperationResponse>();
|
|
|
|
public static AgencyOperationResponse NotFound(string message) => NotFound<AgencyOperationResponse>(message);
|
|
|
|
public static AgencyOperationResponse BadRequest(string message) => BadRequest<AgencyOperationResponse>(message);
|
|
|
|
public static AgencyOperationResponse InternalServerError(string message) => InternalServerError<AgencyOperationResponse>(message);
|
|
}
|
|
|