public static Category MakeCategory(String title, string catId, int color, bool isRoot = false) { Category cat = new Category (); cat.Title = title; cat.ID = catId; cat.Color = color; cat.IsRoot = isRoot; return cat; }
public void AddCategory(Category cat) { _db.AddCategory (cat); }