Esempio n. 1
0
 public Result <CodeMapperItem> GetById(int id)
 {
     return(_repository.GetById(id).Bind <CodeMapperItem>(result =>
                                                          _repositoryDetail.GetDetails(result.Id).Bind(details =>
     {
         result.DetailItems = details;
         return Result <CodeMapperItem> .Ok(result);
     })));
 }
Esempio n. 2
0
 public Result <IEnumerable <CodeMapperDetailItem> > GetDetails(int mapperId) => _query.GetDetails(mapperId);