Fixes command since Avatar is required

This commit is contained in:
2017-02-04 16:33:48 +01:00
parent 21ec2f40b3
commit 12ba997c0e
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]