public void SetResponseForDelete(ValueEnum response) { if (response == ValueEnum.Yes && Model != null) { Model.Delete(); ApplySearchCriteria(); if (IsEditControl) { SendBackMessage(); } } }
public void SetResponseForBack(ValueEnum response) { if (response != ValueEnum.Cancel) { if (response == ValueEnum.Yes) { Model.Save(); } else { Model.Rollback(); } SendBackMessage(); } }