PIAPS_CW/Contracts/BusinessLogicContracts/IUserLogic.cs

29 lines
726 B
C#
Raw Permalink Normal View History

2024-06-04 23:44:36 +04:00
using Contracts.BindingModels;
using Contracts.SearchModels;
using Contracts.ViewModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2024-06-04 23:44:36 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.BusinessLogicContracts
{
2024-06-22 18:42:11 +04:00
public interface IUserLogic
{
string Login(string email, string password);
2024-06-22 18:42:11 +04:00
bool VerifyCode(string code);
2024-06-04 23:44:36 +04:00
2024-06-22 18:42:11 +04:00
string Create(UserBindingModel model);
2024-06-04 23:44:36 +04:00
2024-06-22 18:42:11 +04:00
UserViewModel Update(UserBindingModel model);
2024-06-04 23:44:36 +04:00
2024-06-22 18:42:11 +04:00
UserViewModel ReadElement(UserSearchModel model);
2024-06-04 23:44:36 +04:00
2024-06-22 18:42:11 +04:00
IEnumerable<UserViewModel> ReadElements(UserSearchModel? model);
UserViewModel Delete(UserSearchModel model);
}
2024-06-04 23:44:36 +04:00
}