//[ValidateAntiForgeryToken]
        public ActionResult Create([FromBody] EventViewModel model)
        {
            try
            {
                // TODO: Add insert logic here
                var entity = eventRepository.ConvertModelToEntity(model);
                eventRepository.AddRecord(entity);


                return(Json(entity));
            }
            catch
            {
                return(View());
            }
        }