Projekt

Obecné

Profil

Stáhnout (721 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using Core.Entities;
2
using Models.Enums;
3
using System;
4
using System.Collections.Generic;
5
using System.Linq;
6
using System.Text;
7
using System.Threading.Tasks;
8

    
9
namespace Core.Services
10
{
11
    public interface IUserService
12
    {
13
        public User? CreateUser(string username, string name, string surname, string password, ERole role);
14
        public User? GetUserByUsername(string username);
15
        public User? GetUserById(Guid id);
16
        public User UpdateUser(User user, string? username = null, string? name = null, string? surname = null, ERole? role = null);
17
        public User ChangePassword(User user, string newPassword);
18
        public User? CheckUsernamePassword(string username, string password);
19
    }
20
}
(1-1/2)