This commit is contained in:
2023-06-17 14:25:51 +03:00
parent 7ae5d3bc81
commit 5e0965cfd1
4 changed files with 25 additions and 9 deletions
@@ -1,6 +1,7 @@
namespace MyOffice.Web.Models.AccountMotion;
using Data.Models.Accounts;
using Services.Account.Domain;
public class AccountMotionViewModel
{
@@ -27,13 +28,16 @@ public static class AccountMotionViewModelExtension
public static class AccountMotionRequestExtension
{
public static AccountMotion FromModel(this AccountMotionRequest input)
public static AccountMotionAdd FromModel(this AccountMotionRequest input)
{
/*return new AccountMotion
return new AccountMotionAdd
{
CreatedOn = input.Date,
mo
};*/
Date = input.Date,
Motion = input.Motion,
Minus = input.Minus,
Plus = input.Plus,
Description = input.Description,
};
}
}