/// <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)
        {
            AppEmailTemplateMaintenanceEditViewModel editModel = model as AppEmailTemplateMaintenanceEditViewModel;

            // do not return an alternate result
            return(null);
        }
 public virtual ActionResult Edit(AppEmailTemplateMaintenanceEditViewModel model)
 {
     return(this.Edit <AppEmailTemplateMaintenanceEditViewModel, int, AppEmailTemplateMaintenanceService, AppEmailTemplateMaintenanceSaveRequest, AppEmailTemplateMaintenanceSaveResponse, AppEmailTemplate>(model));
 }
        /// <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)
        {
            AppEmailTemplateMaintenanceEditViewModel model = viewModel as AppEmailTemplateMaintenanceEditViewModel;

            model.Active = true;
        }
        public virtual ActionResult Edit(int?id = null, AppEmailTemplateMaintenanceEditViewModel model = null)
        {
            int itemId = id.HasValue ? id.Value : 0;

            return(this.Edit <AppEmailTemplateMaintenanceEditViewModel, int, AppEmailTemplateMaintenanceService, AppEmailTemplateMaintenanceGetRequest, AppEmailTemplateMaintenanceGetResponse, AppEmailTemplate>(itemId, model));
        }