public IActionResult ChangeVenderStatusByAdmin([FromBody] string[] strVIDS) { IARresponse = BadRequest(); string strVids = null; if (strVIDS.Length > 0) { for (int iArrCount = 0; iArrCount < strVIDS.Length; iArrCount++) { if (strVids != null) { strVids += ',' + strVIDS[iArrCount].ToString(); } else { strVids += strVIDS[iArrCount].ToString(); } } } try { if (objadmindb.ChangeVenderStatusByAdmin(strVids) == "") { IARresponse = Ok(new { res = "" });// "Vendors " + actiontype + " successfully" }); } else { IARresponse = BadRequest(new { res = "Try Again later!.." + objadmindb.ChangeVenderStatusByAdmin(strVids) }); } } catch (Exception ex) { IARresponse = BadRequest(new { res = ex.Message }); } return(IARresponse); }