﻿using System.ComponentModel.DataAnnotations;

namespace ViaYou.Domain.Travels
{
    public class Category
    {
        public Category()
        {

        }
        public Category(string name)
        {
            Name = name;
        }
        public int Id { get; set; }
        [Required]
        [MaxLength(40)]
        public string Name { get; set; }

        public void Update(string name)
        {
            Name = name;
        }
    }
}
