public IActionResult DeleteVenderByAdmin([FromBody] int Vid) { IARresponse = BadRequest(); try { if (objadmindb.DeleteVenderByAdmin(Vid) == "") { IARresponse = Ok(new { res = "Vendor Deleted Successfully" }); } else { IARresponse = BadRequest(new { res = "Vendor not Deleted... try again later!.." + objadmindb.DeleteVenderByAdmin(Vid) }); } } catch (Exception ex) { IARresponse = BadRequest(new { res = ex.Message }); } return(IARresponse); }