public GetAuthenticationLogAdminParam(GetAuthenticationLogParam param) { foreach (var p in param.GetType().GetProperties()) { GetType().GetProperty(p.Name)?.SetValue(this, p.GetValue(param)); } }
public ActionResult <PaginatedResponse <AuthenticationLogDto> > GetLogs([FromQuery] GetAuthenticationLogParam param) { var user = (UserAdmin)_userRepository.GetUser(Guid.Parse(User.Identity.Name)); return(GetLogs(new GetAuthenticationLogAdminParam(param) { OrganizationCode = user.Domain.OrganizationCode })); }