Exemple #1
0
        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));
        }