using System.ComponentModel.DataAnnotations;

namespace Schokotaler.Api.Models.Controllers.Tokens {
    public class TokenCreate : IControllerModel {
        [Required]
        public string Email { get; set; }
        [Required]
        public string Password { get; set; }

        public bool IsValid() {
            return (Email != null && Email.Length > 0) && (Password != null && Password.Length > 0);
        }
    }
}