예제 #1
0
 public TResult <string> GetObjectDetails(string user, string projectname, string workinglayer, string object_sysuid)
 {
     try
     {
         int wo_id = 0;
         if (!int.TryParse(workinglayer, out wo_id))
         {
             return(null);
         }
         //object comosobject = System.Web.HttpContext.Current.ApplicationInstance.Application["ComosAPI"];
         //IBRServiceContracts.IServiceContract m_ComosAPIService = (IBRServiceContracts.IServiceContract)comosobject;
         IServiceContract m_ComosAPIService = GetComosAPI();
         string           result            = m_ComosAPIService.GetObjectDetails(user, projectname, wo_id, object_sysuid);
         return(new TResult <string>()
         {
             Status = true,
             data = result,
             Message = null,
         });
     }
     catch (Exception ex)
     {
         LogHandler.WriteLog(ex.Message);
         return(new TResult <string>()
         {
             Status = false,
             data = null,
             Message = ex.Message,
         });
     }
 }