aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Interfaces/IUserService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/api/Interfaces/IUserService.cs')
-rw-r--r--backend/api/api/Interfaces/IUserService.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/api/api/Interfaces/IUserService.cs b/backend/api/api/Interfaces/IUserService.cs
new file mode 100644
index 00000000..d34d410a
--- /dev/null
+++ b/backend/api/api/Interfaces/IUserService.cs
@@ -0,0 +1,16 @@
+using api.Models;
+using Microsoft.AspNetCore.Mvc;
+
+namespace api.Services
+{
+ public interface IUserService
+ {
+ List<User> Get();// daje sve korisnike
+ User GetUserUsername(string username); //daje korisnika po korisnickom imenu
+ User Create(User user); // kreira korisnika
+ bool Update(string username, User user); //apdejtuje korisnika po idu
+ void Delete(string username);//brise korisnika
+ public User GetUserByUsername(string username);//Uzima jednog korisnika po username-u
+ public User GetUserById(string id);//Uzima jednog korisnika po id-u
+ }
+}