public JsonResultEntity GetById(int id)
        {
            EventBL          eventBL  = new EventBL();
            JsonResultEntity response = new JsonResultEntity();

            try
            {
                var result = eventBL.GetById(id);

                if (result.HasWarning())
                {
                    response.Message = String.Join(",", result.Warning);
                    return(response);
                }

                response.Success = true;
                response.Data    = result.Value;
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;
                LoggerHelper.Error(ex);
            }

            return(response);
        }