CCN.Modules.CustRelations.DataAccess.CustRelationsDA.UpdateRelationsApplyById C# (CSharp) Method

UpdateRelationsApplyById() public method

修改好友申请By id
public UpdateRelationsApplyById ( CustRelationsApplyModels model ) : int
model CCN.Modules.CustRelations.BusinessEntity.CustRelationsApplyModels
return int
        public int UpdateRelationsApplyById(CustRelationsApplyModels model)
        {
            int result;
            const string sql = "update cust_relations_apply set remark=@remark, sourceid=@sourceid where innerid=@innerid;";
            try
            {
                result = Helper.Execute(sql, model);
            }
            catch (Exception ex)
            {
                result = 0;
            }

            return result;
        }