Esempio n. 1
0
        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() });
        }
Esempio n. 2
0
 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());
 }