public static bool ModifyFinanceConfigPermission(FinanceConfigPermission model) { string sql = string.Format(@"update {0} set [DepartId]=@DepartId,[FinanceConfigId]=@FinanceConfigId where Id=@Id", TableName); return(DBAccess.ExecuteSqlWithEntity(sql, model)); }
public static bool AddFinanceConfigPermission(FinanceConfigPermission model) { string sql = string.Format("insert into {0}([DepartId],[FinanceConfigId]) values(@DepartId,@FinanceConfigId)", TableName); return(DBAccess.ExecuteSqlWithEntity(sql, model)); }