protected void ShowNotification(SqlResultType type, string title, string message) { MessageObjectType objectType = MessageObjectType.Info; switch (type) { case SqlResultType.Existed: objectType = MessageObjectType.Warning; break; case SqlResultType.NotExisted: objectType = MessageObjectType.Warning; break; case SqlResultType.OK: objectType = MessageObjectType.Success; break; case SqlResultType.Failed: objectType = MessageObjectType.Error; break; case SqlResultType.Exception: objectType = MessageObjectType.Error; break; case SqlResultType.None: break; default: break; } TempData["notify"] = new MessageObject { type = objectType, title = title, message = message }; }
protected void ShowMessage(MessageObjectType type, string title, string message) { TempData["messagebox"] = new MessageObject { type = type, title = title, message = message }; }
protected void ShowNotification(MessageObjectType type, string title, string message) { TempData["notify"] = new MessageObject { type = type, title = title, message = message }; }