public string Create(UserLoginLogPoco poco) { UserLoginLog entity = _mapper.Map <UserLoginLog>(poco); _userLoginLogs.InsertOne(entity); return(entity.Id); }
public string Create(UserLoginLogPoco poco) { UserLoginLog entity = _mapper.Map <UserLoginLog>(poco); entity.Id = Guid.NewGuid().ToString(); _context.SaveAsync(entity); return(entity.Id); }
private void CreateLoginLog(string userId, string loginIP, bool failed, string failedReason) { UserLoginLogPoco poco = new UserLoginLogPoco { UserId = userId, LoginIP = loginIP, LoginDate = DateTime.Now, Failed = failed, FailedReason = failedReason }; _userLoginLogsRepository.Create(poco); }