常用方法
常用方法
常用方法
常用方法
public IActionResult GetMonthlySalesBySalesRepId(int salesRepId, int month, int year) { var employee = _userRepository.GetEmployeeById(salesRepId); if (employee == null) { return(NotFound("No Employees Match This Sales Rep Id")); } var monthlySales = _repository.MonthlySalesBySalesRepId(month, year, salesRepId); return(Ok(monthlySales)); }