Posted on: 8/12/2014 7:32:14 PM | Views : 408

i have this below code
public async static Task<ME_PostSections> GetObjectByIDAsync(int id, MediaEntities context) { return await context.ME_PostSections.Where(x => x.PostSectionID == id).FirstOrDefaultAsync(); } it throws this error
Error 3 Cannot convert method group 'FirstOrDefault' to non-delegate type 'ProjectABC.AppCode.DAL.MediaModel.ME_PostSections'. Did you intend to invoke the method? E:\My Repository\ProjectABC\Code\AppCode\BLL\MediaBLL\PostSectionsBL.cs 53 32 ProjectABC

Go to the complete details ...