public void Log(ErrorCodes ErrorCode, string ErrorDescription, ApplicationUser user, int Channel) { AuthenticationLog log = new AuthenticationLog(); log.Method = "LogOut"; log.ServerIP = Utilities.GetServerIP(); log.CreatedDate = DateTime.Now; log.Channel = Channel; log.ErrorCode = ErrorCode; log.ErrorDescription = ErrorDescription; //log.Password = user.Password; log.Email = user.Email; log.UserName = user.UserName; _authenticationLogRepository.Insert(log); }
public void Log(ErrorCodes ErrorCode, string ErrorDescription, string Email, string UserName, int Channel, string Password) { AuthenticationLog log = new AuthenticationLog(); log.Method = "UserRegister"; log.ServerIP = Utilities.GetServerIP(); log.CreatedDate = DateTime.Now; log.Channel = Channel; log.ErrorCode = ErrorCode; log.ErrorDescription = ErrorDescription; log.Password = Password; log.Email = Email; log.UserName = UserName; _authenticationLogRepository.Insert(log); }
public void Log(ErrorCodes ErrorCode, string ErrorDescription, RegisterCompanyModel model) { AuthenticationLog log = new AuthenticationLog(); log.Method = "CompanyRegister"; log.ServerIP = Utilities.GetServerIP(); log.CreatedDate = DateTime.Now; log.Channel = model?.Channel; log.ErrorCode = ErrorCode; log.ErrorDescription = ErrorDescription; log.Password = model?.Password; log.Email = model?.Email; log.UserName = model?.Email; log.CompanyCrNumber = model?.CompanyCrNumber; log.CompanyName = model?.CompanyName; log.CompanySponserId = model?.CompanySponserId; log.CompanyVatNumber = model?.CompanyVatNumber; _authenticationLogRepository.Insert(log); }