public string MedicinesUpdate(dynamic data) { string strResponse = ""; string strmedicineid = data.id; string strmedicineName = data.medicineName; string strmedicinetypeid = data.medicinetypeid; string strmedicinecontentvalue = data.medicinecontentvalue; string strmedicinecontenttype = data.medicinecontenttype; string strpacketsize = data.packetsize; string strpacketprice = data.packetprice; string strdosage = data.dosage; string strgenericid = data.genericid; string strmanufacturerid = data.manufacturerid; string strusage = data.usage; string strsideeffect = data.sideeffect; string stralternate = data.alternate; Medicines objMed = new Medicines(); bool bResult = objMed.MedicinesUpdate(strmedicineid, strmedicineName, strmedicinetypeid, strmedicinecontentvalue, strmedicinecontenttype, strpacketsize, strpacketprice, strdosage, strgenericid, strmanufacturerid, strusage, strsideeffect, stralternate, ref strResponse); if (bResult) { strResponse = "Medicine updated successfully"; } else { strResponse = "Failed to updated Medicine"; } return(strResponse); }