常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> AddSale(int id, double sale) { var successful = await _phoneService.AddSaleAsync(id, sale); if (!successful) { return(BadRequest("Could not create sale.")); } return(RedirectToAction("Phones")); }