public override ActionResult Index(RenderModel model) { var customModel = new ChalmersILLLogoutPageModel(); _memberInfoManager.PopulateModelWithMemberData(Request, Response, customModel); if (library.IsLoggedOn()) { var memberId = _memberInfoManager.GetCurrentMemberId(Request, Response); FormsAuthentication.SignOut(); _memberInfoManager.ClearMemberCache(Response); } return(CurrentTemplate(customModel)); }
public ActionResult RenderOrderItem(int nodeId) { // Get current member. int memberId = _memberInfoManager.GetCurrentMemberId(Request, Response); // Get a new OrderItem populated with values for this node var pageModel = new ChalmersILLOrderItemModel(_orderItemManager.GetOrderItem(nodeId)); // Check if the current user has the lock for the item. pageModel.OrderItem.EditedByCurrentMember = pageModel.OrderItem.EditedBy != "" && pageModel.OrderItem.EditedBy == memberId.ToString(); _umbraco.PopulateModelWithAvailableValues(pageModel); // Return Partial View to the client return(PartialView("Chalmers.ILL.OrderItem", pageModel)); }