public async Task <bool> Update(eSWIS.Logic.UsrProfile.Container.USRPROFILE input) { bool res = false; try { var repo = new Plexform.Logic.UserProfileLogic(); res = await repo.Update(input); } catch (Exception ex) { var temp = ex.ToString(); } return(ObjectMapper.Map <bool>(res)); }
public async Task <bool> Delete(string id) { bool res = false; try { var repo = new Plexform.Logic.UserProfileLogic(); res = await repo.Delete(id); } catch (Exception ex) { var temp = ex.ToString(); } return(ObjectMapper.Map <bool>(res)); }
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() )); }