Ejemplo n.º 1
0
        public JsonResult GetEventOkNotOk(int eventId)
        {
            var eventPersonStatus = EventCommand.GetEventOkNotOk(eventId);

            var pieModels = new List <PieModel>();

            pieModels.Add(new PieModel()
            {
                Value     = eventPersonStatus.SeenOk,
                Label     = Translations.SeenOk,
                Color     = "#5cb85c",
                Highlight = "#4cae4c",
            });



            pieModels.Add(new PieModel()
            {
                Value     = eventPersonStatus.SeenNotOk,
                Label     = Translations.SeenNotOk,
                Color     = "#F7464A",
                Highlight = "#FF5A5E",
            });

            pieModels.Add(new PieModel()
            {
                Value     = eventPersonStatus.WithoutAnswer,
                Label     = Translations.WithoutAnswer,
                Color     = "#1989c0",
                Highlight = "#007cba",
            });
            return(Json(JsReturnHelper.Return(pieModels)));
        }