public async Task <IResponseOutput> AddAsync(ViewAddInput input) { var entity = _mapper.Map <ViewEntity>(input); var id = (await _viewRepository.InsertAsync(entity)).Id; return(ResponseOutput.Result(id > 0)); }
public async Task <IResponseOutput> AddAsync(ViewAddInput input) { var entity = _mapper.Map <ViewEntity>(input); var id = (await _viewRepository.InsertAsync(entity)).Id; return(ResponseOutput.Result(id > 0)); }