Пример #1
0
 public static object UpdatePortfolio(SessionInfo sessioninfo, MA_PORTFOLIO record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         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 updated = _lookupbusiness.UpdatePorfolio(sessioninfo, record);
         return(new { Result = "OK" });
     }
     catch (Exception ex)
     {
         return(new { Result = "ERROR", Message = ex.Message });
     }
 }
Пример #2
0
 public static object UpdatePortfolio(SessionInfo sessioninfo, MA_PORTFOLIO record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         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 updated = _lookupbusiness.UpdatePorfolio(sessioninfo, record);
         return new { Result = "OK" };
     }
     catch (Exception ex)
     {
         return new { Result = "ERROR", Message = ex.Message };
     }
 }