public ActionResult AvailableHistory()
        {
            List <AvailableListingManageHistoryViewModel> model = AvailableListingViewHelpers.GetAvailableListingManageHistoryViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            return(View(model));
        }
Пример #2
0
 public ActionResult RejoinGroup(Guid groupId)
 {
     GroupMembersHelpers.RejoinGroup(db, groupId, AppUserHelpers.GetOrganisationIdFromUser(db, User), User);
     return(Json(new { success = true }));
 }
        public ActionResult OrdersHistory(string type)
        {
            OrderManageViewModel model = OrderViewHelpers.GetOrderManageViewModelHistory(db, type, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            if (type == "in")
            {
                ViewBag.Type = "Orders In";
            }

            if (type == "out")
            {
                ViewBag.Type = "Orders Out";
            }

            return(View(model));
        }
        public ActionResult Orders()
        {
            OrderManageViewModel model = OrderViewHelpers.GetOrderManageViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            return(View(model));
        }
        public ActionResult OffersHistory(string type)
        {
            List <OfferManageViewOffersModel> model;

            if (type == "created")
            {
                model        = OfferViewHelpers.CreateOffersCreatedHistoryManageViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));
                ViewBag.Type = "Created";
                ViewBag.TypeTableDescription = "made";
            }
            else
            {
                model        = OfferViewHelpers.CreateOffersReceivedHistoryManageViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));
                ViewBag.Type = "Received";
                ViewBag.TypeTableDescription = "received";
            }

            return(View(model));
        }
        public ActionResult RequiredHistory()
        {
            List <RequiredListingManageHistoryViewModel> model = RequiredListingViewHelpers.GetRequiredListingManageHistoryViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            return(View(model));
        }
Пример #7
0
        public ActionResult OrganisationAdmin()
        {
            OrganisationAdminView model = OrganisationViewHelpers.GetOrganisationAdminView(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            return(View(model));
        }