public async Task <IResultModel> FamilyAdd(EmployeeFamilyAddModel model) { var entity = _mapper.Map <EmployeeFamilyEntity>(model); var result = await _familyRepository.AddAsync(entity); return(ResultModel.Result(result)); }
public Task <IResultModel> FamilyAdd(EmployeeFamilyAddModel model) { return(_service.FamilyAdd(model)); }