-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from scogliera/Refactor
Refactor
- Loading branch information
Showing
4 changed files
with
94 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using TeacherDigitalAgency.Models; | ||
using TeacherDigitalAgency.Data; | ||
using TeacherDigitalAgency.Models; | ||
|
||
namespace TeacherDigitalAgency.DAL; | ||
|
||
public interface IMongoDal | ||
{ | ||
public Lecturer? GetLecturer(Guid id); | ||
public IEnumerable<Lecturer> GetAllLecturers(); | ||
public void SetLecturer(Lecturer lecturer, Guid uuid); | ||
public bool DeleteLecturer(Guid id); | ||
public void AddLecturer(Lecturer lecturer); | ||
public DbResult SetLecturer(Lecturer lecturer, Guid uuid); | ||
public DbResult DeleteLecturer(Guid id); | ||
public DbResult AddLecturer(Lecturer lecturer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace TeacherDigitalAgency.Data; | ||
|
||
public enum DbResult | ||
{ | ||
Success, | ||
NotFound, | ||
Error | ||
} |