Exemple #1
0
 public GetSimAndDevicesAdminParam(GetSimAndDevicesParam param)
 {
     foreach (var p in param.GetType().GetProperties())
     {
         GetType().GetProperty(p.Name)?.SetValue(this, p.GetValue(param));
     }
 }
Exemple #2
0
        public ActionResult <PaginatedResponse <SimAndDevice> > GetSimAndDevices([FromQuery] GetSimAndDevicesParam param)
        {
            var user = _userRepository.GetEndUser(Guid.Parse(User.Identity.Name));

            return(GetSimAndDevices(new GetSimAndDevicesAdminParam(param)
            {
                OrganizationCode = user.Domain.Organization.Code
            }));
        }