public TResult <bool> CreateComosDeviceBySystemUID(IBRServiceContracts.CCell[] specs, string user, string projectname, string workinglayer, string ownersystemuid, string cdevsystemfullname) { //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); } bool result = m_ComosAPIService.CreateComosDeviceBySystemUID(specs, user, projectname, idworkinglayer, ownersystemuid, cdevsystemfullname); return(new TResult <bool>() { Status = result, data = result, Message = null, }); }