public async Task <ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE> > GetAllUserProfile(int skipCount = -1, int limit = -1, string orderby = "", string filter = "") { IList <eSWIS.Logic.UsrProfile.Container.USRPROFILE> res = new List <eSWIS.Logic.UsrProfile.Container.USRPROFILE>(); int totalRows = 0; try { var repo = new Plexform.Logic.UserProfileLogic(); res = await repo.GetAllUserProfileAsync(ref totalRows, skipCount, limit, orderby, filter); } catch (Exception ex) { var temp = ex.ToString(); } return(new ListResultContainer <eSWIS.Logic.UsrProfile.Container.USRPROFILE>( ObjectMapper.Map <IList <eSWIS.Logic.UsrProfile.Container.USRPROFILE> >(res), totalRows > 0 ? totalRows : res.Count() )); }