Example #1
0
 public void AlterarStatus(int loteCefId, LoteCefStatus status)
 {
     this.Session
     .CreateQuery("update LoteCef set Status = :status where Id = :id")
     .SetParameter("status", status)
     .SetParameter("id", loteCefId)
     .ExecuteUpdate();
 }
Example #2
0
        public string StatusDetalhe()
        {
            var statusLoteCef = LoteCefStatus.FromValue(this.Status);

            if (statusLoteCef == LoteCefStatus.Fechado)
            {
                return("Em processamento");
            }

            return(statusLoteCef.DisplayName);
        }