40 lines
842 B
C#
40 lines
842 B
C#
namespace MyOffice.Web.Models.AccountMotion;
|
|
|
|
using Data.Models.Accounts;
|
|
|
|
public class AccountMotionViewModel
|
|
{
|
|
public string? Id { get; set; }
|
|
public DateTime Date { get; set; }
|
|
public string Motion { get; set; } = null!;
|
|
public string? Description { get; set; }
|
|
public decimal Plus { get; set; }
|
|
public decimal Minus { get; set; }
|
|
}
|
|
|
|
public class AccountMotionRequest
|
|
{
|
|
public DateTime Date { get; set; }
|
|
public string Motion { get; set; } = null!;
|
|
public string? Description { get; set; }
|
|
public decimal Plus { get; set; }
|
|
public decimal Minus { get; set; }
|
|
}
|
|
|
|
public static class AccountMotionViewModelExtension
|
|
{
|
|
}
|
|
|
|
public static class AccountMotionRequestExtension
|
|
{
|
|
public static AccountMotion FromModel(this AccountMotionRequest input)
|
|
{
|
|
/*return new AccountMotion
|
|
{
|
|
CreatedOn = input.Date,
|
|
mo
|
|
};*/
|
|
}
|
|
}
|
|
|