Fixes command since Avatar is required

This commit is contained in:
Paul Schneider 2017-02-04 16:33:48 +01:00
commit 0a5d2b8a46
3 changed files with 18 additions and 12 deletions

View file

@ -10,13 +10,13 @@ namespace Yavsc.Models.Billing
public class NominativeServiceCommand<T> : Query<T> where T:Service
{
[Required]
public string ClientId { get; set; }
/// <summary>
/// The client
/// </summary>
[Required,ForeignKey("ClientId")]
[ForeignKey("ClientId")]
public ApplicationUser Client { get; set; }
[Required]