public async Task <bool> Update(S.FAQ parameter) { if (parameter == null) { throw new ArgumentNullException("parameter"); } return(await _service.UpdateAsync(parameter)); }
public async Task <FAQ> Create([FromBody] S.FAQ value) { //TODO: include exception management policy according to technical specifications if (value == null) { throw new ArgumentNullException("value"); } var data = await _service.CreateAsync(value); if (data != null) { return(_mapper.Map <FAQ>(data)); } else { return(null); } }