public void addRealStateTypes(RealStateTypes entity) { string query = $"INSERT INTO [dbo].[RealStateTypes] ([Id] ,[Name]) VALUES ({entity.Id},'{entity.Name}')"; executeQuery(query); }
public void updateRealStateTypes(RealStateTypes entity) { string query = $"UPDATE [dbo].[RealStateTypes] SET [Id] = {entity.Id},[Name] = '{entity.Name}' WHERE Id = {entity.Id}"; executeQuery(query); }