1
Hi, I’m 4 class Cliente
, Locacao
, Item
and Cacamba
:
public class Cliente
{
public Guid ClienteID { get; set; }
public string Nome { get; set; }
...............
}
public class Locacao
{
public Guid LocacaoID { get; set;}
public Guid ClienteID {get;set;}
public DateTime DataLocacao { get; set; }
public DateTime DataEntrega { get; set; }
public string Endereco { get; set; }
........
}
public class Item
{
public Guid ItemID {get;set;}
public Guid LocacaoID {get;set;}
public Guid CaçambaID {get;set;}
public int Quantidade { get; set; }
}
public class Cacamba
{
public Guid CacambaID{get;set;}
public string NomeCacamba {get;set;}
public string Descricao {get;set;}
public decimal Preco {get;set;}
............
}
What I wanted, if possible, is to be able to do on just one page, where I load all the customers and select the client, then fill in the rental data, then select the bucket and already play directly in a table the bucket ID, name, price and total value, on the page itself, and at the end I save the data you have on Locacao
and in the Item
at the bank.