Example #1
0
        public int Create(ClientesViewModel vm)
        {
            var obj = Mapper.Map <ClientesViewModel, Clientes>(vm);

            obj.DataCadastro = DateTime.Now;
            obj.Ativo        = true;
            BeginTransaction();
            _rep.AddNewCliente(obj);
            return(Commit());
        }