2024-06-04 23:44:36 +04:00
|
|
|
|
using Contracts.BindingModels;
|
|
|
|
|
using Contracts.SearchModels;
|
|
|
|
|
using Contracts.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-06-06 17:48:03 +04:00
|
|
|
|
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-05 15:14:25 +04:00
|
|
|
|
|
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-07-26 02:46:29 +04:00
|
|
|
|
void UpdateBonus(BonusUpdateBindingModel model);
|
2024-06-22 18:42:11 +04:00
|
|
|
|
}
|
2024-06-04 23:44:36 +04:00
|
|
|
|
}
|