public JsonResult DeletePart(string id) { var result = _partService.DeletePart(id); TempData.Put("Message", new NotificationViewModel() { Message = "Part deleted successfully.", MessageType = NotificationType.success }); return(Json(result)); }