Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 684 Bytes
using Newtonsoft.Json;
using System;
using DShop.Common.Messages;
namespace DShop.Api.Messages.Commands
{
[MessageNamespace("products")]
public class CreateProduct : ICommand
{
public Guid Id { get; }
public string Name { get; }
public string Description { get; }
public string Vendor { get; }
public decimal Price { get; }
[JsonConstructor]
public CreateProduct(Guid id, string name, string description,
string vendor, decimal price)
{
Id = id;
Name = name;
Description = description;
Vendor = vendor;
Price = price;
}
}
}