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 SaleOperationResponse : OperationResponse
|
|
{
|
|
public static SaleOperationResponse OK(List<SaleViewModel> data) => OK<SaleOperationResponse, List<SaleViewModel>>(data);
|
|
|
|
public static SaleOperationResponse OK(SaleViewModel data) => OK<SaleOperationResponse, SaleViewModel>(data);
|
|
|
|
public static SaleOperationResponse NoContent() => NoContent<SaleOperationResponse>();
|
|
|
|
public static SaleOperationResponse NotFound(string message) => NotFound<SaleOperationResponse>(message);
|
|
|
|
public static SaleOperationResponse BadRequest(string message) => BadRequest<SaleOperationResponse>(message);
|
|
|
|
public static SaleOperationResponse InternalServerError(string message) => InternalServerError<SaleOperationResponse>(message);
|
|
}
|