public ActionResult GetSecurityLoginsRole(Guid roleId)
        {
            SecurityLoginsRolePoco poco = _logic.Get(roleId);

            if (poco == null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
예제 #2
0
        public IHttpActionResult GetSecurityLoginsRole(Guid id)
        {
            SecurityLoginsRolePoco poco = logic.Get(id);

            if (poco == null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
예제 #3
0
        public IHttpActionResult GetSecurityLoginsRole(Guid securityLoginsRoleId)
        {
            SecurityLoginsRolePoco appEdu = _logic.Get(securityLoginsRoleId);

            if (appEdu == null)
            {
                return(NotFound());
            }
            return(Ok(appEdu));
        }
예제 #4
0
        public IHttpActionResult GetSecurityLoginsRole(Guid SecurityLoginsRoleId)
        {
            SecurityLoginsRolePoco securityLoginsRole = _logic.Get(SecurityLoginsRoleId);

            if (securityLoginsRole == null)
            {
                return(NotFound());
            }
            return(Ok(securityLoginsRole));
        }
예제 #5
0
        public override Task <SecurityLoginsRolePayload> ReadSecurityLoginsRole(IdRequest16 request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            return(new Task <SecurityLoginsRolePayload>(() => new SecurityLoginsRolePayload()
            {
                Id = poco.Id.ToString(),
                Login = poco.Login.ToString(),
                Role = poco.Role.ToString()
            }));
        }
예제 #6
0
        public ActionResult GetSecurityLoginsRole(Guid securityloginroleid)
        {
            SecurityLoginsRolePoco poco = _logicref.Get(securityloginroleid);

            if (poco == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(poco));
            }
        }
        public ActionResult GetSecurityLoginsRole(Guid securityLoginsRoleId)
        {
            SecurityLoginsRolePoco securityLoginsRolePoco = _logic.Get(securityLoginsRoleId);

            if (securityLoginsRolePoco == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(securityLoginsRolePoco));
            }
        }
        public ActionResult GetSecurityLoginsRole(Guid id)
        {
            SecurityLoginsRolePoco poco = _logic.Get(id);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
예제 #9
0
        public override Task <SecLoginsRoleProto> GetSecurityLoginsRole(SecLoginsRoleIdRequest request, ServerCallContext context)
        {
            SecurityLoginsRolePoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("No matching id found");
            }
            return(new Task <SecLoginsRoleProto>(
                       () => new SecLoginsRoleProto
            {
                Id = poco.Id.ToString(),
                Login = poco.Login.ToString(),
                Role = poco.Role.ToString()
            }));
        }
 public IHttpActionResult GetSecurityLoginsRole(Guid SecurityLoginsRoleId)
 {
     try
     {
         SecurityLoginsRolePoco poco = _logic.Get(SecurityLoginsRoleId);
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
예제 #11
0
        public override Task <SecurityLoginsRolePayLoad> ReadSecurityLoginsRole(IdRequestSecLoginsRole request, ServerCallContext context)
        {
            SecurityLoginsRolePoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("poco is null");
            }

            return(new Task <SecurityLoginsRolePayLoad>(
                       () => new SecurityLoginsRolePayLoad()
            {
                Id = poco.Id.ToString(),
                Login = poco.Login.ToString(),
                Role = poco.Role.ToString()
            }
                       ));
        }
 public IHttpActionResult GetSecurityLoginsRole(Guid SecurityLoginsRoleId)
 {
     try
     {
         SecurityLoginsRolePoco item = _logicObj.Get(SecurityLoginsRoleId);
         if (item != null)
         {
             return(this.Ok(item));
         }
         else
         {
             return(this.NotFound());
         }
     }
     catch (Exception e)
     {
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e);
         throw new HttpResponseException(response);
     }
 }
예제 #13
0
 public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string id)
 {
     return(_SecurityLoginsRoleLogic.Get(Guid.Parse(id)));
 }
예제 #14
0
        // return single record
        public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string Id)
        {
            var reference = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false));

            return(reference.Get(Guid.Parse(Id)));
        }
예제 #15
0
        public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(Guid Id)
        {
            SecurityLoginsRoleLogic logic = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false));

            return(logic.Get(Id));
        }
예제 #16
0
 public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string Id)
 {
     return(_securityLoginsRole.Get(Guid.Parse(Id)));
 }
예제 #17
0
        public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string id)
        {
            var logic = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false));

            return(logic.Get(Guid.Parse(id)));
        }
예제 #18
0
 public SecurityLoginsRolePoco GetSingleSecurityLoginsRolePoco(Guid Id)
 {
     return(_logicLoginRole.Get(Id));
 }