Exemple #1
0
        protected override ActionResult DoNext(ExhibitionDto exhibitionDto, int currentStep)
        {
            switch (currentStep)
            {
            case 0:
                return(RedirectToActionAfterSuccessCreate(AfterSuccessSaveParam.Create(exhibitionDto.Id, null, null, null, null, null, currentStep)));

            case 1:
                return(DoCreate(exhibitionDto, AfterSuccessSaveParam.Create(exhibitionDto.Id, null, WebConstants.VIEW_PAGED_LIST, WebConstants.CONTROLLER_EXHIBITION, null, HtmlConstants.PAGED_LIST_EXHIBITION, currentStep)));    //null, null, null, currentStep.ToString()));
            }
            return(null);
        }
 public override ActionResult Create(MenuItemDto menuItemDto)
 {
     return(DoCreate(menuItemDto, AfterSuccessSaveParam.Create(menuItemDto.Id, Message.CreateSuccessMessage(MessageKeyConstants.INFO_OBJECT_SAVE_SUCCESS_MESSAGE), WebConstants.VIEW_LIST, WebConstants.CONTROLLER_MENU, null, HtmlConstants.TREE_MENU_ITEM)));
 }
Exemple #3
0
 public ActionResult Details(ExhibitionDto exhibitionDto)
 {
     return(base.DoCreate(exhibitionDto, AfterSuccessSaveParam.Create(exhibitionDto, Message.CreateSuccessMessage(MessageKeyConstants.INFO_OBJECT_SAVE_SUCCESS_MESSAGE), WebConstants.VIEW_DETAILS, WebConstants.CONTROLLER_EXHIBITION, new { id = exhibitionDto.Id })));
 }
Exemple #4
0
 public ActionResult Details(PaintingDto paintingDto)
 {
     return(base.DoCreate(paintingDto, AfterSuccessSaveParam.Create(paintingDto, Message.CreateSuccessMessage(MessageKeyConstants.INFO_OBJECT_SAVE_SUCCESS_MESSAGE), WebConstants.VIEW_DETAILS, WebConstants.CONTROLLER_PAINTING, new { id = paintingDto.Id })));
 }
 public override ActionResult Create(CollectionDto collectionDto)
 {
     return(DoCreate(collectionDto, AfterSuccessSaveParam.Create(collectionDto.Id, Message.CreateSuccessMessage(MessageKeyConstants.INFO_OBJECT_SAVE_SUCCESS_MESSAGE), WebConstants.VIEW_PAGED_LIST, WebConstants.CONTROLLER_COLLECTION, null, HtmlConstants.PAGED_LIST_COLLECTION)));
 }
 public ActionResult Details(UserDto userDto)
 {
     return(base.DoCreate(userDto, AfterSuccessSaveParam.Create(userDto, Message.CreateSuccessMessage(MessageKeyConstants.INFO_OBJECT_SAVE_SUCCESS_MESSAGE), WebConstants.VIEW_PROFILE, WebConstants.CONTROLLER_USER, new { id = userDto.Id })));
 }
Exemple #7
0
 public ActionResult TreeNodeChangePosition(Guid sourceId, Guid targetId)
 {
     GetService().TreeNodeChangePosition(sourceId, targetId);
     return(RedirectToActionAfterSuccessCreate(AfterSuccessSaveParam.Create(sourceId, null, WebConstants.VIEW_LIST, null, null, HtmlConstants.TREE_MENU_ITEM)));
     //return RedirectToActionAfterSuccessCreate(sourceId, WebConstants.VIEW_LIST, null, null, HtmlConstants.TREE_MENU_ITEM);
 }