38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
using AccountManagement.Application.Contracts.Account;
|
|
|
|
namespace AccountManagement.Application.Contracts.CameraAccount;
|
|
|
|
public interface ICameraAccountApplication
|
|
{
|
|
|
|
OperationResult Create(CreateCameraAccount command);
|
|
OperationResult Edit(EditCameraAccount command);
|
|
EditCameraAccount GetDetails(long id);
|
|
OperationResult Active(long id);
|
|
OperationResult DeActive(long id);
|
|
OperationResult ChangePass(ChangePassword command);
|
|
bool HasCameraAccount(long workshopId, long accountId);
|
|
|
|
|
|
OperationResult CheckUsername(string username);
|
|
#region Safa
|
|
|
|
EditCameraAccount GetDetailsByWorkshop(long workshopId);
|
|
|
|
#endregion
|
|
|
|
|
|
#region Pooya
|
|
|
|
List<CameraAccountViewModel> GetAllByWorkshopIdAndAccountId(long accountId, List<(long Id, string Name)> workshops);
|
|
|
|
List<CameraAccountViewModel> GetAllByWorkshopId(long workshopId);
|
|
|
|
#endregion
|
|
} |