Exemple #1
0
        public void MustNotBe(int id, DossierStates state)
        {
            var d = repo.Get(id);

            if (d == null)
            {
                throw new AsmsEx("acest dosar nu exista");
            }
            if (d.StateId == state)
            {
                throw new AsmsEx("acest dosar nu este in statutul necesar pentru aceasta actiune");
            }
        }
Exemple #2
0
 public void MustNotBe(int id, DossierStates state)
 {
     var d = repo.Get(id);
     if (d == null) throw new AsmsEx("acest dosar nu exista");
     if (d.StateId == state) throw new AsmsEx("acest dosar nu este in statutul necesar pentru aceasta actiune");
 }
Exemple #3
0
 public int ChangeState(int id, DossierStates stateId)
 {
     return(DbUtil.ExecuteNonQuerySp("changeDossierState", new { id, stateId }, Cs));
 }