generated from kzi-nastava/dotnet-wpf-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #462 from kzi-nastava/feat/examslot-timeslot-db-co…
…nnection feat: connect ExamSlot Entity to database
- Loading branch information
Showing
22 changed files
with
336 additions
and
287 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using LangLang.Composition; | ||
using LangLang.Domain.RepositoryInterfaces; | ||
using LangLang.Domain.Models; | ||
using System.Collections.Generic; | ||
|
||
namespace LangLang.BusinessLogic.UseCases | ||
{ | ||
public class CourseTimeSlotService | ||
{ | ||
public ICourseTimeSlotRepository _repository; | ||
|
||
public CourseTimeSlotService() | ||
{ | ||
_repository = Injector.CreateInstance<ICourseTimeSlotRepository>(); | ||
} | ||
|
||
public void Add(CourseTimeSlot courseTimeSlot) | ||
{ | ||
_repository.Add(courseTimeSlot); | ||
} | ||
|
||
public List<CourseTimeSlot> GetAll() | ||
{ | ||
return _repository.GetAll(); | ||
} | ||
|
||
public CourseTimeSlot Get(int id) | ||
{ | ||
return _repository.Get(id); | ||
} | ||
|
||
} | ||
} |
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
Oops, something went wrong.