public virtual void Any(DeleteApptStatus request) { var _repository = _DataRepositoryFactory.GetDataRepository <IGenericEntityRepositoryBase <ApptStatus, IDataContextNhJars> >(); _repository.Delete(request.Id); TrySendDeleteNotificationToChannel(typeof(ApptStatus).Name, new[] { request.Id.ToString() }); }
public override bool OnDeleteData() { if (base.OnDeleteData(true)) { ApptStatus delObj = defaultBindingSource.Current as ApptStatus; var delReq = new DeleteApptStatus { Id = delObj.Id }; ServiceClient.Delete(delReq); defaultBindingSource.RemoveCurrent(); defaultBindingSource.ResetBindings(false); } lblInfo.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; return(base.OnDeleteData()); }