public FuelReportInventoryOperationDto MapToModel(Domain.Model.DomainObjects.InventoryOperation entity) { var dto = new FuelReportInventoryOperationDto() { Id = entity.Id, Code = entity.ActionNumber, ActionType = entity.ActionType.ToString(), ActionDate = entity.ActionDate, //FuelReportDetail = this.fuelReportDetailDtoMapper.MapToModel(entity.FuelReportDetail) }; return dto; }
private InventoryOperation mapInventoryOperationDtoToInventoryOperation(FuelReportInventoryOperationDto arg) { var result = new InventoryOperation(arg.Code, arg.ActionDate, mapInventoryActionType(arg.ActionType), null, null); return result; }