示例#1
0
 public SingleResult <StudentDetail> GetStudentDetail([FromODataUri] int key)
 {
     return(SingleResult.Create(db.StudentDetails.Where(studentDetail => studentDetail.StudentRef == key)));
 }
 public SingleResult <SystemRole> Get([FromODataUri] Guid key)
 {
     return(SingleResult.Create(context.SystemRoles.Where(systemrole => systemrole.RoleID == key)));
 }
示例#3
0
 public SingleResult <mdProjectLogo> GetmdProjectLogo([FromODataUri] int key)
 {
     return(SingleResult.Create(db.mdProjectLogoes.Where(mdProjectLogo => mdProjectLogo.LogoID == key)));
 }
示例#4
0
 public SingleResult <ProductModel> GetProductModel([FromODataUri] int key)
 {
     return(SingleResult.Create(collection.AsQueryable <ProductModel>().Where(entity => entity.ProductModelID == key)));
 }
 protected SingleResult <K> Get <K>(int key, Expression <Func <T, K> > selector)
     where K : GenericModel <int>
 {
     return(SingleResult.Create(this.service.GetAll(x => x.Id == key).Select(selector)));
 }
 public SingleResult <MovieTicket> GetMovieTicket([FromODataUri] int key)
 {
     return(SingleResult.Create(db.MovieTickets.Where(movieTicket => movieTicket.MovieId == key)));
 }
示例#7
0
 public SingleResult <Formula> GetFormula([FromODataUri] Guid key)
 {
     return(SingleResult.Create(db.Formulae.Where(formula => formula.Id == key)));
 }
示例#8
0
        public SingleResult <ProgramChoice> Get([FromODataUri] int key)
        {
            IQueryable <ProgramChoice> result = context.ProgramChoices.Where(a => a.ProgramChoiceId == key);

            return(SingleResult.Create(result));
        }
示例#9
0
 public SingleResult <T_SLUICE> GetT_SLUICE([FromODataUri] decimal key)
 {
     return(SingleResult.Create(db.T_SLUICE.Where(w => w.OBJECTID == key)));
 }
示例#10
0
        public SingleResult <EmployeeTerritory> GetEmployeeTerritory([FromODataUri] int keyEmployeeID, [FromODataUri] string keyTerritoryID)
        {
            var items = this.context.EmployeeTerritories.Where(i => i.EmployeeID == keyEmployeeID && i.TerritoryID == keyTerritoryID);

            return(SingleResult.Create(items));
        }
示例#11
0
 public SingleResult <Order> GetOrder([FromODataUri] Int32 key)
 {
     return(SingleResult.Create(db.Orders.Where(order => order.OrderID == key)));
 }
        public SingleResult <PoliceStation> Get([FromODataUri] int key)
        {
            IQueryable <PoliceStation> result = db.PoliceStations.Where(p => p.Id == key);

            return(SingleResult.Create(result));
        }
 public SingleResult <Blog> GetBlog(Guid key)
 {
     return(SingleResult.Create(_db.Blogs.Where(b => b.Id == key)));
 }
示例#14
0
        public SingleResult <Campaign> Get([FromODataUri] int key)
        {
            IQueryable <Campaign> result = db.Campaigns.Where(c => c.Id == key);

            return(SingleResult.Create(result));
        }
        public SingleResult <Offering> Get([FromODataUri] int key)
        {
            IQueryable <Offering> result = db.Offerings.Where(p => p.OfferingID == key);

            return(SingleResult.Create(result));
        }
示例#16
0
 public SingleResult <TodoList> GetTodoList([FromODataUri] int key)
 {
     return(SingleResult.Create(db.TodoLists.Where(todolist => todolist.Id == key)));
 }
示例#17
0
 public SingleResult <Video> GetVideo([FromODataUri] int key)
 {
     return(SingleResult.Create(db.Videos.Where(video => video.Id == key)));
 }
 public SingleResult <ChequeoFormulario> GetChequeoFormulario([FromODataUri] int key)
 {
     return(SingleResult.Create(db.ChequeoFormulario.Where(chequeoFormulario => chequeoFormulario.IdCheqeoF == key)));
 }
示例#19
0
 public SingleResult <Customers> GetCustomers([FromODataUri] string key)
 {
     return(SingleResult.Create(db.Customers.Where(customers => customers.CustomerID == key)));
 }
示例#20
0
 public SingleResult <Project> GetProject([FromODataUri] short key)
 {
     return(SingleResult.Create(db.Projects.Where(project => project.Id == key)));
 }
示例#21
0
 public SingleResult <CalculateParam> GetCalculateParam([FromODataUri] Guid key)
 {
     return(SingleResult.Create(db.Formulae.Where(m => m.Id == key).Select(m => m.CalculateParam)));
 }
 public SingleResult <Player> GetPlayer([FromODataUri] int key)
 {
     return(SingleResult.Create(db.BattingScoreCards.Where(m => m.BattingScoreCardId == key).Select(m => m.Player)));
 }
示例#23
0
 protected SingleResult <T> Get(int key)
 {
     return(SingleResult.Create(this.service.GetAll(x => x.Id == key)));
 }
 public SingleResult <BattingScoreCard> GetBattingScoreCard([FromODataUri] int key)
 {
     return(SingleResult.Create(db.BattingScoreCards.Where(battingScoreCard => battingScoreCard.BattingScoreCardId == key)));
 }
示例#25
0
        public SingleResult <Order> GetOrder(int key)
        {
            var items = this.context.Orders.Where(i => i.OrderID == key);

            return(SingleResult.Create(items));
        }
 public SingleResult <Category> GetCategory([FromODataUri] int key)
 {
     return(SingleResult.Create(db.Categories.Where(category => category.CategoryID == key)));
 }
示例#27
0
 public SingleResult <Usuario> GetUsuario([FromODataUri] int key)
 {
     return(SingleResult.Create(db.Usuarios.Where(usuario => usuario.Id == key)));
 }
示例#28
0
 public SingleResult <Customer> GetCustomer([FromODataUri] string key)
 {
     return(SingleResult.Create(_repo.GetById(key)));
 }
示例#29
0
        public SingleResult <Face> Get([FromODataUri] int ID)
        {
            IQueryable <Face> result = db.Faces.Where(p => p.ID == ID);

            return(SingleResult.Create(result));
        }
 public SingleResult <Person> GetPerson([FromODataUri] int key)
 {
     return(SingleResult.Create(db.People.Where(person => person.Id == key)));
 }