示例#1
0
        public async Task <Location> UpdateAsync(Location location)
        {
            using (var connection = context.CreateConnection())
            {
                await connection.ExecuteAsync(LocationQuery.Update(location));

                return(location);
            }
        }
示例#2
0
        public int Update([FromBody] Location data)
        {
            var query = new LocationQuery();

            return(query.Update(data));
        }