public IActionResult Activities(ActivitiesViewModel model)
        {
            string UserName = HttpContext.Request.Cookies["UserName"] ?? ckUserName;
            IRequestCookieCollection objCookies     = HttpContext.Request.Cookies;
            SalesQuoteLibrary        salesLibrary   = new SalesQuoteLibrary(_configuration);
            PositionSetReq           positionSetReq = new PositionSetReq();
            bool isDuplicate = CheckDuplicateActivity(model);

            if (isDuplicate)
            {
                TempData["error"] = "Can not save same Activity for same day and time!!!";
                model.SaveType    = "full";
                //return PartialView("_Activities", model);
                return(RedirectToAction("Activities", new { model.QRFID, model.SaveType, model.MenuViewModel.IsClone }));
            }
            else
            {
                positionSetReq               = positionMapping.ActivitiesSet(model, ckUserEmailId);
                positionSetReq.QRFID         = model.QRFID;
                positionSetReq.VoyagerUserID = ckLoginUser_Id;
                positionSetReq.FOC           = model.FOC;
                positionSetReq.Price         = model.Price;
                PositionSetRes positionSetRes = positionProviders.SetPosition(positionSetReq, token).Result;

                if (!string.IsNullOrEmpty(model.SaveType) && model.SaveType.ToLower() == "partial")
                {
                    if (positionSetRes.mPosition.Count > 0)
                    {
                        return(Json(new { positionSetRes.ResponseStatus.Status, positionSetRes.mPosition[0].PositionId, positionSetRes.mPosition[0].RoomDetailsInfo }));
                    }
                    else
                    {
                        return(Json(new { positionSetRes.ResponseStatus.Status }));
                    }
                }
                else
                {
                    if (positionSetRes.ResponseStatus.Status.ToLower() == "success")
                    {
                        TempData["success"] = "Activities saved successfully";
                    }
                    else
                    {
                        TempData["error"] = positionSetRes.ResponseStatus.Status;
                    }

                    model.SaveType = "full";
                    if (model.ActivityDetails.Count == 1)
                    {
                        return(RedirectToAction("Activities", new { model.QRFID, model.SaveType, PositionId = model.ActivityDetails[0].ActivityId, IsClone = model.MenuViewModel.IsClone }));
                    }
                    else
                    {
                        return(RedirectToAction("Activities", new { model.QRFID, model.SaveType, IsClone = model.MenuViewModel.IsClone }));
                    }
                }
            }
        }