public static void Main()
var client = new RestClient("http://164.100.80.167/oosc_child_test/api/Student/StudentDetInsert/");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Basic Y2hpbGQ6UmRwUkNvdmlkMjFAQA==");
request.AddHeader("Content-Type", "application/json");
@" ""EncryptKey"": ""37b32d77290ae1c64e9d6c2b35addacabf7e0318c84bf2fce4b9eb126704f04b"",
@" ""RationCardNumber"": ""210700121934"",
@" ""DistrictCode"": 1515,
@" ""DistrictName"": ""KALABURAGI"",
@" ""TalukCode"": 1515002,
@" ""TalukName"": ""ALAND"",
@" ""GPCode"": 1515002009,
@" ""GPName"": ""KORALLI"",
@" ""VillageCode"": 1515002009003,
@" ""VillageName"": ""KORALLI"",
@" ""StudentName"": ""Vinay Kumar.A.Y"",
@" ""FatherName"": ""Vinay"",
@" ""MotherName"": ""Vani"",
@" ""Caste"": ""ಪ್ರವರ್ಗ - 2(ಎ)"",
@" ""FamilyIncome"": ""32000"",
@" ""MobileNo"": ""7411593033"",
@" ""FamilyAddress"": ""10-4-93, mahaleshwara chowk road, beside vaikunta complex, makthalpet, Raichur, Raichur, Raichur, Karnataka, 584101,"",
@" ""StudentDOB"": ""31-03-2011"",
@" ""StudentAge"": ""9"",
@" ""StudentGender"": ""ಹೆಣ್ಣು"",
@" ""StudentStatus"": ""Stopped Going to School"",
@" ""DisabilityStatus"": ""ಇಲ್ಲ"",
@" ""RationCardStatus"": ""Existing"",
@" ""NotGoingReason"": "" ಕೌಟುಂಬಿಕ ಕಾರಣಗಳು; ವೈದ್ಯಕೀಯ ಕಾರಣಗಳು"",
@" ""FatherOccupation"": ""ನಿರುದ್ಯೋಗಿ"",
@" ""MotherOccupation"": ""ಗೃಹಿಣಿ"",
@" ""Religion"": ""ಹಿಂದೂ"",
@" ""StudentMemberID"": ""0""
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);