public GetSimsAdminParam(GetSimsParam param) { foreach (var p in param.GetType().GetProperties()) { GetType().GetProperty(p.Name)?.SetValue(this, p.GetValue(param)); } }
public ActionResult <PaginatedResponse <Sim> > GetSims([FromQuery] GetSimsParam param) { var user = _userRepository.GetEndUser(Guid.Parse(User.Identity.Name)); return(GetSims(new GetSimsAdminParam(param) { OrganizationCode = user.Domain.Organization.Code })); }