#167 : Finition du CRUD sur Artiste.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Webzine.WebApplication.Areas.Administration.ViewModels.Artiste
|
||||
{
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public class ArtisteCreateViewModel
|
||||
{
|
||||
[Required]
|
||||
public string Nom { get; set; }
|
||||
|
||||
public string Biographie { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace Webzine.WebApplication.Areas.Administration.ViewModels.Artiste
|
||||
{
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public class ArtisteEditViewModel
|
||||
{
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Nom { get; set; }
|
||||
|
||||
public string Biographie { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user