public TResult <CQueryResult> ExecuteLinkedQuery(string user, string projectname, string workinglayer, string opt, string startobject) { //object comosobject = System.Web.HttpContext.Current.ApplicationInstance.Application["ComosAPI"]; //IBRServiceContracts.IServiceContract m_ComosAPIService = (IBRServiceContracts.IServiceContract)comosobject; IServiceContract m_ComosAPIService = GetComosAPI(); int idworkinglayer = 0; if (workinglayer != "") { idworkinglayer = int.Parse(workinglayer); } TResult <CQueryResult> result = m_ComosAPIService.ExecuteTaskQuery(user, projectname, idworkinglayer, opt, startobject); return(result); }