I have an MVC app. I created a resources folder with resources files in it.
In my view I can type:
InvoiceStatuses.Received
which is the equivalent to "received" so avoiding the magic string.
However in my view I currently have something like:
@if (item.Status == "received")
I can't seem to use the resource in the view for some reason. I type it but it doesn't recognise it. I guess this is because in the view there is no where to put a:
using MyApp.Resources;
Can someone please tell me if it is possible to use this resource in the view and if so how?