public static Domain.DomainModels.Category CreateCategory( Guid id, string name = null, string description = null, Domain.Enums.CategoryType type = Domain.Enums.CategoryType.None) { return(new Domain.DomainModels.Category( id, name ?? "Product", description ?? "Apple", type)); }
public bool GetByType(Domain.Enums.CategoryType Type) { switch (Type) { case Enums.CategoryType.Public: return(CanPublic); case Enums.CategoryType.Current: return(CanPrivate); case Enums.CategoryType.Ticket: return(CanTicket); } return(false); }