예제 #1
0
        //actions goes here
        public async Task <JobCategoryViewModel> AddNewCategory(JobCategoryViewModel model)
        {
            var mapped = _mapper.Map <JobCategory>(model);
            await _jobCategoryRepository.Add(mapped);

            return(model);
        }
예제 #2
0
        public async Task <bool> Add(JobCategory item)
        {
            _repo.Add(item);
            await _unitOfWork.Save();

            return(true);
        }