Last post Feb 16, 2014 07:08 AM by binu joseph
None
0 Points
1 Post
Feb 16, 2014 07:08 AM|binu joseph|LINK
Hi all,I am new to MVC and Web api
I have a small web api created using entity framework and the fiollwing VB.net code i am using to get data this code returns data from a view and it is working fine
public Class OfferController
Inherits ApiController
Private _dbContext As df_data_Entities
Public Function [Get]() As IEnumerable(Of offer_view)
_dbContext =New df_data_Entities
Return _dbContext.offer_view.AsQueryable
End Function
//Now i need to get data from the same view by Airport code which is a three letter string field eg"DXB"
Somebody please help me
None
0 Points
1 Post
Web Api Data using entity framework
Feb 16, 2014 07:08 AM|binu joseph|LINK
Hi all,I am new to MVC and Web api
I have a small web api created using entity framework and the fiollwing VB.net code i am using to get data this code returns data from a view and it is working fine
public Class OfferController
Inherits ApiController
Private _dbContext As df_data_Entities
Public Function [Get]() As IEnumerable(Of offer_view)
_dbContext =New df_data_Entities
Return _dbContext.offer_view.AsQueryable
End Function
//Now i need to get data from the same view by Airport code which is a three letter string field eg"DXB"
Somebody please help me