retunere true når man tilføjer til shoppinglisten
This commit is contained in:
parent
b8ebac5970
commit
3c3f0f202b
@ -27,7 +27,7 @@ namespace API.DBAccess
|
||||
|
||||
bool saved = await _context.SaveChangesAsync() >= 1;
|
||||
|
||||
if (saved) { return new OkObjectResult(user); }
|
||||
if (saved) { return new OkObjectResult(true); }
|
||||
|
||||
return new ConflictObjectResult(new { message = "Could not save to database" });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user