public async System.Threading.Tasks.Task <HouseWorker> Create(CreateWorkerInput input) { Logger.Info("Create" + input.ToString()); var worker = ObjectMapper.Map <HouseWorker>(input); var worker2 = await _workerRepository.InsertAsync(worker); return(worker2); }
public async System.Threading.Tasks.Task Update(CreateWorkerInput input) { Logger.Info("Update" + input.ToString()); var worker = ObjectMapper.Map <HouseWorker>(input); await _workerRepository.UpdateAsync(worker); }