Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ListResultOutput Error #1811


User avatar
0
epayday created

Hi, we have downloaded the ASP.NETZero V2.1 and we have attempted to go through the PhoneBook tutorial. We got up to the creating person application service section. ListResultOutput CS0246 - Show potential fixes > Generate class ListResultOutput.

public ListResultOutput<PersonListDto> GetPeople(GetPeopleInput input) { var persons = _personRepository .GetAll() .WhereIf( !input.Filter.IsNullOrEmpty(), p => p.Name.Contains(input.Filter) || p.Surname.Contains(input.Filter) || p.EmailAddress.Contains(input.Filter) ) .OrderBy(p => p.Name) .ThenBy(p => p.Surname) .ToList();

        return new ListResultOutput&lt;PersonListDto&gt;(persons.MapTo&lt;List&lt;PersonListDto&gt;>());
    }

I think the return may be causing the issues? Also, public class PersonAppService : epaydayServiceBase, IPersonAppService CS0738 - Show potential fixes > Implement interface.

I am guessing others are using V2.1. Have other people come across these issues and know why they arise with V2.1?

Thanks,


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I have replied your email with a more detailed explanation of your problem. For others having same problem, ListResultOutput is renamed in ABP v1.0, see <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1402">https://github.com/aspnetboilerplate/as ... ssues/1402</a>.