public IActionResult CheckMailForExistVendor(string strEmail) { int vid = 0; IARresponse = BadRequest(); try { vid = objadminDb.CheckMailForExistVendor(strEmail); IARresponse = Ok(new { res = vid }); } catch (Exception ex) { IARresponse = BadRequest(ex.Message + " in AdminController CheckMailForExistVendor()"); } return(IARresponse); }