public async Task <bool> UpdateasComplete(string activityId, string actionis, string claimId)
        {
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];
            string UserId = client.UserId;

            MyActivityRepo protalLoginAccountsRepo = new MyActivityRepo();

            return(await protalLoginAccountsRepo.UpdateAsComplete(activityId, actionis, claimId, UserId));
        }
        public async Task <bool> UpdateDueDate(string activityId, string dateTime)
        {
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];
            string UserId = client.UserId;

            MyActivityRepo protalLoginAccountsRepo = new MyActivityRepo();

            return(await protalLoginAccountsRepo.UpdateDuedate(activityId, UserId, dateTime));
        }
        private async Task <List <ActivityClaimModel> > GetActivityClaims(string userId)
        {
            try
            {
                List <ActivityClaimModel> list = new List <ActivityClaimModel>();
                MyActivityRepo            protalLoginAccountsRepo = new MyActivityRepo();
                list = await protalLoginAccountsRepo.GetActivityClaims(userId);

                return(list);
            }
            catch (Exception)
            {
                throw;
            }
        }
        private async Task <List <ActivityOwnerModel> > getOwnerList()
        {
            try
            {
                List <ActivityOwnerModel> list = new List <ActivityOwnerModel>();
                MyActivityRepo            protalLoginAccountsRepo = new MyActivityRepo();
                list = await protalLoginAccountsRepo.GetOwnerList();

                return(list);
            }
            catch (Exception)
            {
                throw;
            }
        }
        private async Task <List <ActivityUserModel> > GetUsers(List <string> TeamList)
        {
            try
            {
                List <ActivityUserModel> list = new List <ActivityUserModel>();
                MyActivityRepo           protalLoginAccountsRepo = new MyActivityRepo();
                list = await protalLoginAccountsRepo.GetUsers(TeamList);

                return(list);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public async Task <ActionResult> GetMyActivity(bool overdue, bool nextfiveday, bool showwithdate, string claimId, string owner, string customerId, string searchtext, string assignId, string associate)
        {
            try
            {
                if (assignId == "null")
                {
                    ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];
                    assignId = client.UserId;
                }
                List <MyActivityModels> list        = new List <MyActivityModels>();
                MyActivityRepo          activityrep = new MyActivityRepo();
                list = await activityrep.GetMyActivity(overdue, nextfiveday, showwithdate, claimId, assignId, owner, customerId, searchtext, associate);

                return(Json(list, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }