public bool UploadLogo(ClientBusiness cbObject) { try { StringBuilder updateQuery = new StringBuilder("UPDATE ClientBusinessDetails SET BusinessLogoPath=@LogoPath WHERE ClientBusinessDetailId=@ClientBusinessDetailId"); if (clientDA.AddLogoDetails(cbObject, updateQuery.ToString())) { return(true); } else { return(false); } } catch (Exception ex) { throw ex; } }