Thank you for your quick response...
I have Cached the BookStatusMaster in hard drive as entity collection with a key so that i dont make multiple trip to DB.
The status is unique for each company, this table has the name of the status and the companyID + other columns... something like this
Status.................CompanyID ....
Active.................. A
Inactive................ A
New...................... A
InUse.................... B
Deactive.................B
Just arrived............B
in my drop down i have to show status based on the user's company (A or B)
i alredy have the BookStatusMaster entity collection retrived from Caching, now i just need a better way to filter and return the collection based on what companyId gets passed.
something like
Select * into BookStatus_A from BookStatusMaster
where CompanyID='A'
and return BookStatus_A (select * from BookStatus_A)
i have also modified the code above, for some reason it omit out few char...