//actions goes here public async Task <JobCategoryViewModel> AddNewCategory(JobCategoryViewModel model) { var mapped = _mapper.Map <JobCategory>(model); await _jobCategoryRepository.Add(mapped); return(model); }
public async Task <bool> Add(JobCategory item) { _repo.Add(item); await _unitOfWork.Save(); return(true); }