public async Task <IActionResult> Placeorder(string ProductId, string email, string password) { //Do code here Task <ApplicationUser> l_user = _userGroceryServices.Login(email, password); if (l_user.Result is null) { return(NotFound("No User Found")); } Task <Product> product_by_id = _groceryServices.GetProductById(ProductId); if (product_by_id.Result is null) { return(NotFound($"{ProductId} not found")); } Task <bool> x = _groceryServices.PlaceOrder(ProductId, l_user.Result.UserId); return(Ok("Order Placed")); // Check for Stock of that Product //throw new NotImplementedException(); }