Пример #1
0
 public GetSimsAdminParam(GetSimsParam param)
 {
     foreach (var p in param.GetType().GetProperties())
     {
         GetType().GetProperty(p.Name)?.SetValue(this, p.GetValue(param));
     }
 }
Пример #2
0
        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
            }));
        }