How to leave a maskedbox

0

How do I leave the values as value in Reais, not a common number.

Ineedthesevaluestobe2.00,ifpossible,leave$2.00

MyController:

publicActionResultAdiciona(AbastecimentoModelviewModel){viewModel.TotalGasto=viewModel.Litro*viewModel.VlrUnit;if(ModelState.IsValid){Abastecimentoabastecimento=viewModel.CriaAbastecimento();dao.Adiciona(abastecimento);//returnView();returnRedirectToAction("Index");
        }
        else
        {
            ViewBag.Usuarios = usuarioDAO.Lista();
            ViewBag.Veiculo = veiculoDAO.Lista();
            return View("Form",viewModel);
        }

    }

My view:

 @model IList<BlogWeb.Models.Abastecimento>
<!DOCTYPE HTML>
<p>@Html.ActionLink("Novo Abastecimento", "Form")</p>
<table class="table table-hover">

    <thead>

        <tr>
            <th>Nº do Carro</th>
            <th>Data</th>
            <th>Litro</th>
            <th>Valor Unitario</th>
            <th>Valor Total</th>
            <th>Usuario</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var a in Model)
        {
            <tr>

                <td>@a.NumCarro.NCarro</td>
                <td>@a.DtAbastecido</td>
                <td>@a.Litro</td>
                <td>@a.VlrUnit</td>
                <td>@a.TotalGasto</td>
                <td>@a.Autor.Nome</td>



            </tr>

        }
    </tbody>
</table>
    
asked by anonymous 08.09.2017 / 23:48

0 answers