Hello every one how to sent data in c# in single object with multiple terms for e,g Pizza one term here multiple data like Title , Desc and Second term is Cricket here multiple data like Title , Desc , This type data how to send single object.
Loading
Jayraj ChhayaPosted Apr 8, 2022, 11:30 AM
Use the Below Code and Output.
use the following above Model
Uttam KumarPosted Apr 8, 2022, 9:12 AM
You use the following class to pass the data in a object
Public class Item{
Public string Name { get; set; }
Public ItemData objItemData { get; set; }
}
public class ItemData {
Public string title { get; set; }
Public string description { get; set; }
}