예제 #1
0
        public JsonResultEntity Update([FromBody] EventPlaceLocationEntity eventplacelocationEntity)
        {
            EventPlaceLocationBL eventplacelocationBL = new EventPlaceLocationBL();
            JsonResultEntity     response             = new JsonResultEntity();

            try
            {
                var result = eventplacelocationBL.Update(eventplacelocationEntity);
                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);
        }