public async Task <ActionResult> DeleteUserFridgeDetail(int id) //fridge_id { var fridge = (await _userfridgeService.Get(m => m.FridgeId == id)).SingleOrDefault(); if (fridge == null) { return(NotFound()); } await _userfridgeService.Delete(fridge); return(Ok(fridge)); }