public ActionResult Create(FormCollection form) { ComandaEletronica.Entity.Pedido e = new Pedido(); //e.Id = int.Parse(form["id"]); e.Conta_Id = int.Parse(form["conta_id"]); e.Status = StatusPedido.Produzindo; e.DataEntrega = DateTime.Parse(form["dataEntrega"]); using (PedidoModel model = new PedidoModel()) { model.Create(e); } return(RedirectToAction("Index")); }