Exemple #1
0
        public async Task <IResultModel> FamilyAdd(EmployeeFamilyAddModel model)
        {
            var entity = _mapper.Map <EmployeeFamilyEntity>(model);
            var result = await _familyRepository.AddAsync(entity);

            return(ResultModel.Result(result));
        }
Exemple #2
0
 public Task <IResultModel> FamilyAdd(EmployeeFamilyAddModel model)
 {
     return(_service.FamilyAdd(model));
 }