mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Started the user auth
This commit is contained in:
parent
48fd182e52
commit
a8b6137ef8
9 changed files with 115 additions and 22 deletions
|
@ -50,7 +50,7 @@ namespace RequestPlex.UI.Modules
|
|||
Post["/delete"] = _ =>
|
||||
{
|
||||
var convertedType = (string)Request.Form.type == "movie" ? RequestType.Movie : RequestType.TvShow;
|
||||
return Delete((int)Request.Form.id, convertedType);
|
||||
return DeleteRequest((int)Request.Form.id, convertedType);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ namespace RequestPlex.UI.Modules
|
|||
return Response.AsJson(viewModel);
|
||||
}
|
||||
|
||||
private Response Delete(int tmdbId, RequestType type)
|
||||
private Response DeleteRequest(int tmdbId, RequestType type)
|
||||
{
|
||||
var currentEntity = Service.GetAll().FirstOrDefault(x => x.Tmdbid == tmdbId && x.Type == type);
|
||||
Service.Delete(currentEntity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue