public ActionResult GetSecurityLoginsRole(Guid roleId) { SecurityLoginsRolePoco poco = _logic.Get(roleId); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetSecurityLoginsRole(Guid id) { SecurityLoginsRolePoco poco = logic.Get(id); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetSecurityLoginsRole(Guid securityLoginsRoleId) { SecurityLoginsRolePoco appEdu = _logic.Get(securityLoginsRoleId); if (appEdu == null) { return(NotFound()); } return(Ok(appEdu)); }
public IHttpActionResult GetSecurityLoginsRole(Guid SecurityLoginsRoleId) { SecurityLoginsRolePoco securityLoginsRole = _logic.Get(SecurityLoginsRoleId); if (securityLoginsRole == null) { return(NotFound()); } return(Ok(securityLoginsRole)); }
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() })); }
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()); } }
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)); } }
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); } }
public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string id) { return(_SecurityLoginsRoleLogic.Get(Guid.Parse(id))); }
// return single record public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string Id) { var reference = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false)); return(reference.Get(Guid.Parse(Id))); }
public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(Guid Id) { SecurityLoginsRoleLogic logic = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false)); return(logic.Get(Id)); }
public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string Id) { return(_securityLoginsRole.Get(Guid.Parse(Id))); }
public SecurityLoginsRolePoco GetSingleSecurityLoginsRole(string id) { var logic = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false)); return(logic.Get(Guid.Parse(id))); }
public SecurityLoginsRolePoco GetSingleSecurityLoginsRolePoco(Guid Id) { return(_logicLoginRole.Get(Id)); }