using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Traffic.Data.Models; using Traffic.Data.ViewModels; namespace Traffic.Repository.Interfaces { public interface IAccountRepository { public IEnumerable GetAccountUsers(); public AccountUser GetAccountUserById(int id); public AccountUser GetAccountUserByAccount(string account); public IEnumerable GetAccountRoles(); public IEnumerable GetAccountUserSite(int id); public IEnumerable GetAccountUserSites(); public AccountUser GetAccountUserByAccount(string account, string password); public int InsertAccountUser(AccountUser accountUser); public int InsertAccountRole(AccountRole accountRole); public bool InsertAccountUserSite(List userSite); public bool UpdateAccountUserbyAdmin(AccountUser accountUser); public bool UpdateAccountUserPasswordByAdmin(int id, string newPassword, int byWho, DateTime updateOn); public bool UpdateAccountUserbyUser(AccountUser accountUser); public bool UpdateAccountUserPasswordByUser(int id, string oldPassword, string newPassword, DateTime updatedOn); public bool InsertUserLoginLog(UserLoginLog userLogin); public bool UpdateUserErrorCount(int id, int errorCount); public bool DeleteUser(int id); public bool DeleteUserSite(int userId); public bool DisableUser(int byWho, int id, int status); public IEnumerable GetAccountPwdTop3(string account); public bool InsertAccountPwd(AccountPwd accountUser); } }