Hi
How to insert records using single stored procedure with Ado.Net in MVC c#
public class Invoice
{
public Invoice()
{
}
[Key]
public string No { get; set; }
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
public string DocDate { get; set; }
public virtual ICollection InvoiceDetails { get; set; }
public string Status { get; set; }
}
public partial class InvoiceDetail
{
public string DocNo { get; set; }
public Product Id { get; set; }
public decimal Quantity { get; set; }
public Nullable price { get; set; }
public Nullable GrossAmount { get; set; }
public Nullable NetAmount { get; set; }
}
Thanks