public LoginMethodResultDto Login(LoginMethodParametersDto pars) { var result = pars.UserName == "admin" && pars.Password == "1"; var sessionId = result ? Guid.NewGuid() : Guid.Empty; if (result) { _clients.Add(sessionId, DateTime.UtcNow); } return new LoginMethodResultDto { Result = result, SessionId = sessionId }; }
public LoginMethodResultDto Login(LoginMethodParametersDto pars) { return Helper.MailsController.Login(pars); }