public async Task <IReturnEntity> Get(int id) { IFormApi api = await _formDomain.GetFormById(id); if (api is null) { return(new RequestReturnEntity("No record for this ID.", 400)); } IFormReturnEntity returnEntity = new FormReturnEntity(api); return(returnEntity); }
public FormReturnEntity(IFormApi api) { _formApi = api; }