only show requested by users to admins + start maintaining a list of users with each request

This commit is contained in:
Drewster727 2016-03-29 13:41:39 -05:00
parent 5a5512a1cd
commit b8a01b62b9
8 changed files with 54 additions and 20 deletions

View file

@ -58,10 +58,11 @@ namespace PlexRequests.Core
return result ? id : -1;
}
public bool CheckRequest(int providerId)
public RequestedModel CheckRequest(int providerId)
{
var blobs = Repo.GetAll();
return blobs.Any(x => x.ProviderId == providerId);
var blob = blobs.FirstOrDefault(x => x.ProviderId == providerId);
return blob != null ? ByteConverterHelper.ReturnObject<RequestedModel>(blob.Content) : null;
}
public void DeleteRequest(RequestedModel request)