Example #1
0
 public PageException(IOperationParams values) : base
     (
         "Отсутствуют URL адрес удовлетворяющий условию поиска. \n" +
         $"Операция: {values.operationType.ToString()}\n" +
         $"Расположение сервера: {values.ServerWordPart.ToString()}\n" +
         $"Версия игры: {values.WowServerType}\n", ExceptionType.Constant
     )
 {
 }
Example #2
0
        public static bool Eq(IOperationParams a, IOperationParams b)
        {
            if (a.operationType == b.operationType &&
                a.ServerWordPart == b.ServerWordPart &&
                a.WowServerType == b.WowServerType)
            {
                return(true);
            }

            return(false);
        }
 private PartialViewResult HandleInvokeEntitySetActionWithoutVoidResult(string action, IOperationParams inputViewModel)
 {
     try
     {
         CoreRepository.InvokeEntitySetActionWithVoidResult("SpecialOperations", action, inputViewModel != null ? inputViewModel.GetRequestPramsObject() : null);
         ViewBag.Notifications.Add(new AjaxNotificationViewModel(
             ENotifyStyle.success,
             string.Format("Operation {0} called successfully", action)
             ));
         return PartialView(action, inputViewModel);
     }
     catch (Exception ex)
     {
         ((List<AjaxNotificationViewModel>)ViewBag.Notifications).AddRange(ViewBag.Notifications = ExceptionHelper.GetAjaxNotifications(ex));
         return PartialView(action, inputViewModel);
     }
 }
Example #4
0
        public bool Eq(IOperationParams b)
        {
            var a = (IOperationParams)this;

            return(Eq(a, b));
        }