Exemple #1
0
        public IActionResult GetDistributor(Guid id)
        {
            var DistributorFromRepo = _distributor.GetDistributor(id);

            if (DistributorFromRepo == null)
            {
                return(NotFound());
            }
            var distributor = Mapper.Map <DistributorDto>(DistributorFromRepo);

            return(Ok(distributor));
        }
 public Distributor GetDistributor(System.Int32 DistributorId)
 {
     return(_iDistributorRepository.GetDistributor(DistributorId));
 }