Esempio n. 1
0
        public async Task <IActionResult> GetBranchByNewAffiliation(int id)
        {
            var branch = await branchService.FindByNewAffiliationAsync(id);

            if (branch == null)
            {
                return(NotFound());
            }

            var mappedBranch = mapper.Map <IList <Branch>, IList <BranchViewModel> >(branch.Items);

            return(Ok(mappedBranch));
        }