Пример #1
0
        public async Task <IActionResult> Get()
        {
            var res = await _profilesmasterRepository.GetAllAsync();

            var model = _Mapper.Map <IEnumerable <ProfileMasterDTO> >(res);

            return(Ok(model));
        }
        // GET: Profiles
        public async Task <IActionResult> Index()
        {
            var res = await _profilesMaterRepository.GetAllAsync();

            var Model = _Mapper.Map <IEnumerable <ProfilesMasterViewmodel> >(res);

            return(View(Model));
        }