Criar um aplicativo ASP.Net MVC 5 usando o template Empty para realizar o cadastro de uma pessoa seguindo as regras abaixo:
Criar um model chamado Pessoa com os seguintes campos:
Campo | Validação --- | --- | ---
define([ | |
'model/lancamentoModel', 'model/categoriaModel', 'model/contaBancariaModel', | |
'model/formaDePagamentoModel', 'model/clienteFornecedorModel', 'model/contratoModel','model/bancoModel', 'ko', 'logger', 'jquery', 'moment' | |
], function( | |
lancamentoModel, categoriaModel, contaBancariaModel, formaDePagamentoModel, clienteFornecedorModel, | |
contratoModel, bancoModel, ko, logger, jq, mm) { | |
var controller = { | |
lancamento: lancamentoModel, | |
contaBancaria: contaBancariaModel, |
(function () { | |
'use strict'; | |
var app = angular.module('angularApp'); | |
app.controller('aboutController', ['$scope', function ($scope) { | |
$scope.title = 'About App Template'; | |
}]); | |
app.controller('helpController', ['$scope', function($scope) { |
rsync (Everyone seems to like -z, but it is much slower for me)
@using ExemploADOSimples.Controllers | |
@model ExemploADOSimples.Models.Cao | |
@{ | |
ViewBag.Title = "Detalhe"; | |
} | |
<div class="col-md-6"> | |
<h2>Cadastrar</h2> | |
@Html.ValidationSummary() | |
<form action="" method="POST"> | |
<fieldset> |
using System; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Globalization; | |
using System.Linq; | |
using System.Web; | |
using ExemploADOSimples.Models; | |
using ExemploADOSimples.Repositorio; | |
namespace ExemploADOSimples.Aplicacao |
@model LoginClaims.Controllers.LoginViewModel | |
@{ | |
ViewBag.Title = "Login"; | |
} | |
<h2>Login</h2> | |
<p>@ViewBag.erro</p> | |
<form action="" method="POST"> |
using System; | |
using System.Diagnostics; | |
namespace MonitorCPU | |
{ | |
class Program | |
{ | |
public static void Main() | |
{ | |
Monitorar(); |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Claims; | |
using System.Web; | |
using System.Web.Mvc; | |
using Microsoft.AspNet.Identity; | |
using Microsoft.Owin; | |
using Microsoft.Owin.Security; |
public ActionResult Index(LoginViewModel model, string returnUrl) | |
{ | |
if (!ModelState.IsValid) return View(); | |
var usuario = autenticacaoAplicacao.UsuarioInformadoPodeLogarNoSistema(model.Login, model.Pass); | |
if (usuario != null) | |
{ | |
Seguranca.SignInCookie(usuario); |