/// <summary>
        /// Allows render the Edit view
        /// </summary>
        /// <param name="id">The id of the entity to edit into the view</param>
        /// <param name="entity">The entity to edit</param>
        private async Task <IActionResult> Edit(string id, IEntityData entity)
        {
            if (entity == null)
            {
                return(NotFound());
            }

            var model = Settings as IEditModel;

            model.SetData(entity.GetEntity());

            model.CurrentProcess = CrudProcesses.Edit;
            return(await RenderView(nameof(Edit), model, model.SaveAction));
        }