2
I have a model, called CombustivelModels
, where I made a Scaffolding
generating the Controller
and the Views
, my doubt is, when making a review on that Model
, has how to update via Scaffolding
the Controller
and the View
?
Old model:
public class CombustivelModels
{
[Key]
public int CombustivelId { get; set; }
[Required]
public decimal km_inicial { get; set; }
[Required]
public decimal km_final { get; set; }
[Required]
public decimal litros { get; set; }
[Required]
[DataType(DataType.Currency)]
public decimal valor { get; set; }
}
Revised Model:
public class CombustivelModels
{
[Key]
public int CombustivelId { get; set; }
[Required]
public decimal km_inicial { get; set; }
[Required]
public decimal km_final { get; set; }
[Required]
public decimal litros { get; set; }
[Required]
[DataType(DataType.Currency)]
public decimal valor { get; set; }
[Required]
public string UserId { get; set; }
}