public JsonResultEntity Create([FromBody] EventEntity eventEntity) { EventBL eventBL = new EventBL(); JsonResultEntity response = new JsonResultEntity(); try { var result = eventBL.Create(eventEntity); 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); }