//function to check the company login public bool CheckCompanyLogin(string companyId, string password) { int cnt = int.Parse(companyObj.CheckCompanyLogin(companyId, password).ToString()); if (cnt == 1) { return(true); } return(false); }