//[ValidateAntiForgeryToken]
        public IActionResult Create(MotherBoardNorthBridgeViewModel model)
        {
            var motherBoardNorthBridge = new MotherBoardNorthBridge()
            {
                Name = model.Name
            };

            var result = _motherBoardNorthBridgeService.CreateMotherBoardNorthBridge(motherBoardNorthBridge);

            if (result.Succedeed)
            {
                return(Json(motherBoardNorthBridge));
            }

            return(Json(result));
        }
        //[ValidateAntiForgeryToken]
        public ActionResult Edit(MotherBoardNorthBridgeViewModel model)
        {
            var motherBoardNorthBridge = _motherBoardNorthBridgeService.GetMotherBoardNorthBridge(model.Id);

            if (motherBoardNorthBridge == null)
            {
                return(NotFound());
            }

            motherBoardNorthBridge.Name = model.Name;
            var result = _motherBoardNorthBridgeService.UpdateMotherBoardNorthBridge(motherBoardNorthBridge);

            if (result.Succedeed)
            {
                return(Json(motherBoardNorthBridge));
            }

            return(Json(result));
        }