private void SaveDesc(object sender) { if (!(sender is RequestItemViewModel)) { return; } var requestModel = sender as RequestItemViewModel; if (!requestModel.RequestId.HasValue) { return; } _requestService.ChangeDescription(requestModel.RequestId.Value, requestModel.Description); MessageBox.Show("Примечание сохранено!"); }