示例#1
0
        /// <summary>
        /// Allows you update the mapping of the model after the record has been saved and converted to the edit view model
        /// </summary>
        /// <typeparam name="M">Model</typeparam>
        /// <typeparam name="E">Entity</typeparam>
        /// <param name="model">Model</param>
        /// <param name="entity">Entity</param>
        protected override ActionResult OnEditSavedMapping <M, P, R, E>(M model, E Entity, P request, R response)
        {
            SecurityActionMaintenanceEditViewModel editModel = model as SecurityActionMaintenanceEditViewModel;

            // do not return an alternate result
            return(null);
        }
示例#2
0
 public virtual ActionResult Edit(SecurityActionMaintenanceEditViewModel model)
 {
     return(this.Edit <SecurityActionMaintenanceEditViewModel, int, SecurityActionMaintenanceService, SecurityActionMaintenanceSaveRequest, SecurityActionMaintenanceSaveResponse, SecurityAction>(model));
 }
示例#3
0
 /// <summary>
 /// On Creation of a new record set the initial values
 /// </summary>
 /// <typeparam name="M">Model Type</typeparam>
 /// <param name="viewModel">View for new model</param>
 protected override void OnEditNewRecord <M>(M viewModel)
 {
     SecurityActionMaintenanceEditViewModel model = viewModel as SecurityActionMaintenanceEditViewModel;
     //model.Active = true;
 }
示例#4
0
        public virtual ActionResult Edit(int?id = null, SecurityActionMaintenanceEditViewModel model = null)
        {
            int itemId = id.HasValue ? id.Value : 0;

            return(this.Edit <SecurityActionMaintenanceEditViewModel, int, SecurityActionMaintenanceService, SecurityActionMaintenanceGetRequest, SecurityActionMaintenanceGetResponse, SecurityAction>(itemId, model));
        }