Example #1
0
        public static StatusView EditarStatus(StatusView status, string AlteradoPor, DateTime AlteradoEm)
        {
            Status objdomin = status.DeViewParaDomin();

            objdomin.AlteradoPor = AlteradoPor;
            objdomin.AlteradoEm  = AlteradoEm;

            status = Executar.Cadastro.Status.AtualizarStatus(objdomin).DeDominParaView();
            return(status);
        }
Example #2
0
        public static StatusView CriarNovoStatus(StatusView status, string CriadoPor, DateTime CriadoEm)
        {
            Status objdomin = status.DeViewParaDomin();

            objdomin.CriadoPor = CriadoPor;
            objdomin.CriadoEm  = CriadoEm;

            status = Executar.Cadastro.Status.CriarNovoStatus(objdomin).DeDominParaView();
            return(status);
        }
Example #3
0
        public static bool ExcluirStatus(StatusView status, string AlteradoPor, DateTime AlteradoEm)
        {
            Status objdomin = status.DeViewParaDomin();

            objdomin.AlteradoPor = AlteradoPor;
            objdomin.AlteradoEm  = AlteradoEm;

            bool ret = Executar.Cadastro.Status.ExcluirStatus(objdomin);

            return(ret);
        }