Skip to content

Commit

Permalink
Merge pull request #22 from AlexcastroDev/chore/name-conventions
Browse files Browse the repository at this point in the history
chore: change name convention
  • Loading branch information
alexcastrodev authored Oct 16, 2023
2 parents 3242b9f + c0f0a5d commit ccc6bf3
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 9 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.0] - 2023-10-16

### Added

- Add Location Service
- Add Location Repository

### Changes

- Change repository to name convention
-
## [0.2.1] - 2023-10-15

### Changes
Expand Down
2 changes: 1 addition & 1 deletion ibge/Controllers/LocationsController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ibge.Exceptions;
using ibge.Models;
using ibge.Repository;
using ibge.Repositories;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

Expand Down
2 changes: 1 addition & 1 deletion ibge/Controllers/UserController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ibge.Dtos;
using ibge.Exceptions;
using ibge.Repository;
using ibge.Repositories;
using Microsoft.AspNetCore.Mvc;

namespace ibge.Controllers;
Expand Down
2 changes: 1 addition & 1 deletion ibge/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text;
using ibge.Repository;
using ibge.Repositories;
using ibge.Services;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.EntityFrameworkCore;
Expand Down
2 changes: 1 addition & 1 deletion ibge/Repositories/ILocationRepository.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ibge.Models;
using Microsoft.AspNetCore.Mvc;

namespace ibge.Repository;
namespace ibge.Repositories;

public interface ILocationRepository
{
Expand Down
2 changes: 1 addition & 1 deletion ibge/Repositories/IUserRepository.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ibge.Dtos;
using Microsoft.AspNetCore.Mvc;

namespace ibge.Repository;
namespace ibge.Repositories;

public interface IUserRepository
{
Expand Down
6 changes: 3 additions & 3 deletions ibge/Services/LocationService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ibge.Exceptions;
using ibge.Models;
using ibge.Repository;
using ibge.Repositories;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;

Expand All @@ -20,7 +20,7 @@ public async Task<ActionResult<List<Location>>> Get()
var locations = await _context.Locations.ToListAsync();
return locations;
}

public async Task<ActionResult<bool>> Create(Location model)
{
var location = _context.Locations.Count(location => location.Id == model.Id);
Expand All @@ -29,7 +29,7 @@ public async Task<ActionResult<bool>> Create(Location model)
{
throw ConflictException.Create("Location already exists");
}

_context.Locations.Add(model);
await _context.SaveChangesAsync();
return true;
Expand Down
2 changes: 1 addition & 1 deletion ibge/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using ibge.Dtos;
using ibge.Exceptions;
using ibge.Models;
using ibge.Repository;
using ibge.Repositories;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
Expand Down

0 comments on commit ccc6bf3

Please sign in to comment.