常用方法
常用方法
常用方法
常用方法
public IActionResult GetTotalSalesBySalesRepId(int salesRepId) { var employee = _userRepository.GetEmployeeById(salesRepId); if (employee == null) { return(NotFound("No Employees Match This Sales Rep Id")); } var totalSales = _repository.TotalSalesBySalesRepId(salesRepId); return(Ok(totalSales)); }