CodeLiturgy.Dashboard/BlueWest.Api/Users/IUserManager.cs

36 lines
917 B
C#
Raw Normal View History

2022-09-10 00:33:17 +03:00
using System.Threading.Tasks;
2022-09-17 22:13:35 +03:00
using BlueWest.Data.Application;
2022-09-10 00:33:17 +03:00
using Microsoft.AspNetCore.Identity;
namespace BlueWest.WebApi.Context.Users
{
public interface IUserManager
{
/// <summary>
/// Create user.
/// </summary>
/// <param name="user"></param>
/// <returns></returns>
Task<IdentityResult> CreateAsync(ApplicationUser user);
/// <summary>
/// Checks for user password
/// </summary>
/// <param name="user"></param>
/// <param name="password"></param>
/// <returns></returns>
Task<bool> CheckPasswordAsync(ApplicationUser user, string password);
/// <summary>
/// Find by email
/// </summary>
/// <param name="email"></param>
/// <returns></returns>
Task<ApplicationUser> FindByEmailAsync(string email);
2022-09-17 22:13:35 +03:00
2022-09-10 00:33:17 +03:00
}
}