Example #1
0
        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);
        }
Example #2
0
 public FormReturnEntity(IFormApi api)
 {
     _formApi = api;
 }