Create Ship order command and handler in Ordering.api Create Order management page in WebMVC app
26 lines
580 B
C#
26 lines
580 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WebMVC.Models
|
|
{
|
|
public class OrderProcessAction
|
|
{
|
|
public string Code { get; private set; }
|
|
public string Name { get; private set; }
|
|
|
|
public static OrderProcessAction Ship = new OrderProcessAction(nameof(Ship).ToLowerInvariant(), "Ship");
|
|
|
|
protected OrderProcessAction()
|
|
{
|
|
}
|
|
|
|
public OrderProcessAction(string code, string name)
|
|
{
|
|
Code = code;
|
|
Name = name;
|
|
}
|
|
}
|
|
}
|