//[ValidateAntiForgeryToken] public IActionResult Create(OuterMemoryFormFactorViewModel model) { var motherBoardFormFactor = new OuterMemoryFormFactor() { Name = model.Name }; var result = _motherBoardFormFactorService.CreateOuterMemoryFormFactor(motherBoardFormFactor); if (result.Succedeed) { return(Json(motherBoardFormFactor)); } return(Json(result)); }
public OperationDetails CreateOuterMemoryFormFactor(OuterMemoryFormFactor outerMemoryFormFactor) { Database.OuterMemoryFormFactors.Create(outerMemoryFormFactor); Database.Save(); return(new OperationDetails(true, "Ok", "")); }