18 lines
934 B
C#
18 lines
934 B
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 SalaryOperationResponse : OperationResponse
|
|
{
|
|
public static SalaryOperationResponse OK(List<SalaryViewModel> data) => OK<SalaryOperationResponse, List<SalaryViewModel>>(data);
|
|
public static SalaryOperationResponse NoContent() => NoContent<SalaryOperationResponse>();
|
|
public static SalaryOperationResponse NotFound(string message) => NotFound<SalaryOperationResponse>(message);
|
|
public static SalaryOperationResponse BadRequest(string message) => BadRequest<SalaryOperationResponse>(message);
|
|
public static SalaryOperationResponse InternalServerError(string message) => InternalServerError<SalaryOperationResponse>(message);
|
|
} |