Init
This commit is contained in:
23
Dtos/Stock/CreateStockRequestDto.cs
Normal file
23
Dtos/Stock/CreateStockRequestDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace api.Dtos.Stock
|
||||
{
|
||||
public class CreateStockRequestDto
|
||||
{
|
||||
|
||||
public string Symbol { get; set; } = string.Empty;
|
||||
public string CompanyName { get; set; } = string.Empty;
|
||||
|
||||
public decimal Purchase { get; set; }
|
||||
|
||||
public decimal LastDiv { get; set; }
|
||||
|
||||
public string Industry { get; set; } = string.Empty;
|
||||
|
||||
public long MarketCap { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
25
Dtos/Stock/StockDto.cs
Normal file
25
Dtos/Stock/StockDto.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace api.Dtos.Stock
|
||||
{
|
||||
public class StockDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Symbol { get; set; } = string.Empty;
|
||||
public string CompanyName { get; set; } = string.Empty;
|
||||
|
||||
public decimal Purchase { get; set; }
|
||||
|
||||
public decimal LastDiv { get; set; }
|
||||
|
||||
public string Industry { get; set; } = string.Empty;
|
||||
|
||||
public long MarketCap { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
21
Dtos/Stock/UpdateStockRequestDto.cs
Normal file
21
Dtos/Stock/UpdateStockRequestDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace api.Dtos.Stock
|
||||
{
|
||||
public class UpdateStockRequestDto
|
||||
{
|
||||
public string Symbol { get; set; } = string.Empty;
|
||||
public string CompanyName { get; set; } = string.Empty;
|
||||
|
||||
public decimal Purchase { get; set; }
|
||||
|
||||
public decimal LastDiv { get; set; }
|
||||
|
||||
public string Industry { get; set; } = string.Empty;
|
||||
|
||||
public long MarketCap { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user