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