Beispiel #1
0
 public GetAuthenticationLogAdminParam(GetAuthenticationLogParam param)
 {
     foreach (var p in param.GetType().GetProperties())
     {
         GetType().GetProperty(p.Name)?.SetValue(this, p.GetValue(param));
     }
 }
Beispiel #2
0
        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
            }));
        }