public JsonResultEntity Update([FromBody] EventEntity eventEntity) { EventBL eventBL = new EventBL(); JsonResultEntity response = new JsonResultEntity(); try { var result = eventBL.Update(eventEntity); if (result.HasWarning() || result.Value == null) { response.Message = String.Join(",", result.Warning); return(response); } response.Success = true; response.Data = result.Value; } catch (Exception e) { response.Message = e.Message; LoggerHelper.Error(e); } return(response); }