public bool DeleteDto(JKOUserDto jKOUserDto) { var sqlstr = @" DELETE [jko_user] WITH (tablock) WHERE id = @id"; using (var conn = _DatabaseConnection.Create()) { conn.Execute(sqlstr, jKOUserDto); return(true); } }
public bool DeleteDto(JKOListingDto jKOListingDto) { var sqlstr = @" UPDATE [jko_listing] WITH (tablock) SET is_deleted=1 WHERE id = @id"; using (var conn = _DatabaseConnection.Create()) { conn.Execute(sqlstr, jKOListingDto); return(true); } }