示例#1
0
文件: Brand.cs 项目: tynr426/ict
 public static IResultResponse AddAuth(SysParameter para)
 {
     try
     {
         int    connectorId = para.ToInt("ConnectorId", 0);
         string ids         = para.ToValue("BrandIds");
         int    result      = new AuthBrandBusiness(para.dapperFactory).Insert(connectorId, ids);
         return(ResultResponse.GetSuccessResult(result));
     }
     catch (Exception ex)
     {
         return(ResultResponse.ExceptionResult(ex, 500));
     }
 }
示例#2
0
文件: Brand.cs 项目: tynr426/ict
 public static IResultResponse GetBrandList(SysParameter para)
 {
     try
     {
         int       connectorId = para.ToInt("ConnectorId", 0);
         string    firstSpell  = para.ToValue("FirstSpell");
         bool      showAll     = para.ToBool("ShowAll");
         string    keyword     = para.ToValue("KeyWord");
         ArrayList result      = new AuthBrandBusiness(para.dapperFactory).GetAuthBrandList(connectorId, firstSpell, keyword, showAll);
         if (result == null)
         {
             return(ResultResponse.GetSuccessResult(new ArrayList()));
         }
         return(ResultResponse.GetSuccessResult(result));
     }
     catch (Exception ex)
     {
         return(ResultResponse.ExceptionResult(ex, 500));
     }
 }