I want to perform multiple row insertion in asp.net core where dapper package is used. Here I use a model class, controller and another class. The result stored in database is a datatable which is converted from a list. Here I use a stored procedure with type.
public class PlanDetailsInputModel
{
public int MembershipPlanDetailsId { get; set; }
public int MembershipPlanId { get; set; }
public int CreatedBy { get; set; }
public string Flag { get; set; }
public List<dtPlanFeatureListModel> dtPricePlanDetails { get; set; }
}
public class dtPlanFeatureListModel
{
public long PricePlanFeatureId { get; set; }
}
This is my model class. Help me create my controller and the function.