|
public ActionResult Categorize()
{
List<Categorize> categorizeValue = new List<Categorize>();
categorizeValue.Add(new Categorize { text = "Blue Category", id = 1, color = "#43b496", fontColor = "#ffffff" });
categorizeValue.Add(new Categorize { text = "Green Category", id = 2, color = "#7f993e", fontColor = "#ffffff" });
categorizeValue.Add(new Categorize { text = "Orange Category", id = 3, color = "#cc8638", fontColor = "#ffffff" });
categorizeValue.Add(new Categorize { text = "Purple Category", id = 4, color = "#ab54a0", fontColor = "#ffffff" });
categorizeValue.Add(new Categorize { text = "Red Category", id = 5, color = "#dd654e", fontColor = "#ffffff" });
categorizeValue.Add(new Categorize { text = "Yellow Category", id = 6, color = "#d0af2b", fontColor = "#ffffff" });
ViewBag.categorizeData = categorizeValue;
ViewBag.appointments = new ScheduleData().GetAppData();
return View();
}
public class Categorize
{
public string text { set; get; }
public int id { set; get; }
public string fontColor { set; get; }
public string color { set; get; }
}
</Code>
|