public IActionResult SpouseRegistreationDetails(SpouseRegistreationDetails Spousedetails) { var userRec = new Responsemodel(); List <KeyValuePair <string, string> > keyValuePairs = new List <KeyValuePair <string, string> >(); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseName", Spousedetails.SpouseName.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseOccupation", Spousedetails.SpouseOccupation.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseGender", Spousedetails.SpouseGender.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseLivingSince", Spousedetails.SpouseLivingSince.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseHighestEducationDetails", Spousedetails.SpouseHighestEducationDetails.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseAge", Spousedetails.SpouseAge.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseRelation", Spousedetails.SpouseRelation.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseFamilyAilment", Spousedetails.SpouseFamilyAilment.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseReligion", Spousedetails.SpouseReligion.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseRemarks", Spousedetails.SpouseRemarks.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseAdharCardNumber", Spousedetails.SpouseAdharCardNumber.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("SpouseMobileNumber", Spousedetails.SpouseMobileNumber.ToString())); DataTable dataTable; dataTable = _objDataHelper.ExecuteProcedure("Insertion_Into_Spouse", keyValuePairs); userRec.response = dataTable.Rows[0]["response"].ToString(); userRec.message = dataTable.Rows[0]["message"].ToString(); return(Ok(userRec)); }
public IActionResult ChildRegistrationDetails(ChildRegistrationDetails Childdetails) { var userRec = new Responsemodel(); List <KeyValuePair <string, string> > keyValuePairs = new List <KeyValuePair <string, string> >(); keyValuePairs.Add(new KeyValuePair <string, string>("ChildName", Childdetails.ChildName.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildOccupation", Childdetails.ChildOccupation.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildGender", Childdetails.ChildGender.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildRelation", Childdetails.ChildRelation.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildLivingSince", Childdetails.ChildLivingSince.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildAge", Childdetails.ChildAge.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildHighestEducationDetails", Childdetails.ChildHighestEducationDetails.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildFamilyAilment", Childdetails.ChildFamilyAilment.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildReligion", Childdetails.ChildReligion.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildRemarks", Childdetails.ChildRemarks.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildAdharCardNumber", Childdetails.ChildAdharCardNumber.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("ChildMobileNumber", Childdetails.ChildMobileNumber.ToString())); DataTable dataTable; dataTable = _objDataHelper.ExecuteProcedure("Insertion_In_Child_table", keyValuePairs); userRec.response = dataTable.Rows[0]["response"].ToString(); userRec.message = dataTable.Rows[0]["message"].ToString(); return(Ok(userRec)); }
public IActionResult HeadRegistrationDetails(HeadRegistrationDetails Headdetails) { var userRec = new Responsemodel(); List <KeyValuePair <string, string> > keyValuePairs = new List <KeyValuePair <string, string> >(); keyValuePairs.Add(new KeyValuePair <string, string>("TotalfamilyMember", Headdetails.TotalfamilyMember.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadName", Headdetails.HeadName.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadGender", Headdetails.HeadGender.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadCaste", Headdetails.HeadCaste.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadReligion", Headdetails.HeadReligion.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadAddress", Headdetails.HeadAddress.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadAge", Headdetails.HeadAge.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadHighestEducationDetails", Headdetails.HeadHighestEducationDetails.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("FamilyAilment", Headdetails.FamilyAilment.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadAnunalIncome", Headdetails.HeadAnunalIncome.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadAdharCardNumber", Headdetails.HeadAdharCardNumber.ToString())); keyValuePairs.Add(new KeyValuePair <string, string>("HeadMobileNumber", Headdetails.HeadMobileNumber.ToString())); DataTable dataTable; dataTable = _objDataHelper.ExecuteProcedure("Insertion_In_Head_table", keyValuePairs); userRec.response = dataTable.Rows[0]["response"].ToString(); userRec.message = dataTable.Rows[0]["message"].ToString(); return(Ok(userRec)); }