public static async Task <int> AddCategoryAsync(string tenant, LoginView meta, CalendarCategory model) { var poco = new Category { CategoryName = model.CategoryName, ColorCode = model.ColorCode, AuditUserId = meta.UserId, UserId = meta.UserId, AuditTs = DateTimeOffset.UtcNow, IsLocal = true, Deleted = false }; int categoryId = await Categories.AddCategoryAsync(tenant, poco).ConfigureAwait(false); return(categoryId); }