public JsonResult Add(ShortStorageInfo storageInfo) { CommonModelResult result = new CommonModelResult(); try { _storageService.AddStorageInfo(storageInfo); } catch (BusinessException exception) { _logger.DebugFormat("BusinessException: {0}-{1}", exception.ErrorCode, exception.Message); result.ErrorCode = exception.ErrorCode; result.ErrorDescription = CommonUtils.GetErrorMessage(exception); } catch (Exception exception) { _logger.Error(string.Format("Iternal error {0}", exception)); result.ErrorCode = ErrorCode.InternalErrorException; result.ErrorDescription = CommonUtils.GetEnumDescription(ErrorCode.InternalErrorException); } return(Json(result)); }