public async Task <Location> UpdateAsync(Location location) { using (var connection = context.CreateConnection()) { await connection.ExecuteAsync(LocationQuery.Update(location)); return(location); } }
public int Update([FromBody] Location data) { var query = new LocationQuery(); return(query.Update(data)); }