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> Add(ViewAddInput input) { return(await _viewServices.AddAsync(input)); }