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)));
 }
Exemple #3
0
 public SingleResult <mdProjectLogo> GetmdProjectLogo([FromODataUri] int key)
 {
     return(SingleResult.Create(db.mdProjectLogoes.Where(mdProjectLogo => mdProjectLogo.LogoID == key)));
 }
Exemple #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)));
 }
Exemple #7
0
 public SingleResult <Formula> GetFormula([FromODataUri] Guid key)
 {
     return(SingleResult.Create(db.Formulae.Where(formula => formula.Id == key)));
 }
Exemple #8
0
        public SingleResult <ProgramChoice> Get([FromODataUri] int key)
        {
            IQueryable <ProgramChoice> result = context.ProgramChoices.Where(a => a.ProgramChoiceId == key);

            return(SingleResult.Create(result));
        }
Exemple #9
0
 public SingleResult <T_SLUICE> GetT_SLUICE([FromODataUri] decimal key)
 {
     return(SingleResult.Create(db.T_SLUICE.Where(w => w.OBJECTID == key)));
 }
Exemple #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));
        }
Exemple #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)));
 }
Exemple #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));
        }
Exemple #16
0
 public SingleResult <TodoList> GetTodoList([FromODataUri] int key)
 {
     return(SingleResult.Create(db.TodoLists.Where(todolist => todolist.Id == key)));
 }
 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)));
 }
Exemple #19
0
 public SingleResult <Customers> GetCustomers([FromODataUri] string key)
 {
     return(SingleResult.Create(db.Customers.Where(customers => customers.CustomerID == key)));
 }
Exemple #20
0
 public SingleResult <Project> GetProject([FromODataUri] short key)
 {
     return(SingleResult.Create(db.Projects.Where(project => project.Id == key)));
 }
Exemple #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)));
 }
 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)));
 }
Exemple #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)));
 }
Exemple #27
0
 public SingleResult <Usuario> GetUsuario([FromODataUri] int key)
 {
     return(SingleResult.Create(db.Usuarios.Where(usuario => usuario.Id == key)));
 }
Exemple #28
0
 public SingleResult <Customer> GetCustomer([FromODataUri] string key)
 {
     return(SingleResult.Create(_repo.GetById(key)));
 }
Exemple #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)));
 }