I solve it by creating instance of AddressModel but it created a New instance both "HttpPost" and "HttpGet" request and my view result is empty
pls tell me how to send data on controller by this approach.
public class BaseModel
{
public Guid LeadsId { get; set; }
public Guid UserId { get; set; }
public string Description { get; set; }
public AddressModel addressModel { get; set; }
// add default constructor that initializes addressModel
public BaseModel()
{
addressModel = new AddressModel();
}
}
[HttpPost]
public ActionResult(BaseModel model)
{
}
Is It Possible