Exemplo n.º 1
0
 public static object CreatePortfolio(SessionInfo sessioninfo, MA_PORTFOLIO record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         record.ID        = Guid.NewGuid();
         record.ISACTIVE  = record.ISACTIVE == null || !record.ISACTIVE.Value ? false : true;
         record.ISDEFAULT = record.ISDEFAULT == null || !record.ISDEFAULT.Value ? false : true;
         record.LABEL     = record.LABEL;
         var added = _lookupbusiness.CreateProfolio(sessioninfo, record);
         return(new { Result = "OK", Record = added });
     }
     catch (Exception ex)
     {
         return(new { Result = "ERROR", Message = ex.Message });
     }
 }
Exemplo n.º 2
0
 public static object CreatePortfolio(SessionInfo sessioninfo, MA_PORTFOLIO record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         record.ID = Guid.NewGuid();
         record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE.Value ? false : true;
         record.ISDEFAULT = record.ISDEFAULT == null || !record.ISDEFAULT.Value ? false : true;
         record.LABEL = record.LABEL;
         var added = _lookupbusiness.CreateProfolio(sessioninfo, record);
         return new { Result = "OK", Record = added };
     }
     catch (Exception ex)
     {
         return new { Result = "ERROR", Message = ex.Message };
     }
 }