//
        // GET: /Transporter/MyNotifications
        public ActionResult MyNotifications(PagingModel pm, CustomSearchModel csm, bool givecsm = false)
        {
            if (givecsm)
            {
                ViewBag.ViewName = "Notifications";

                return(PartialView("_MyNotificationsCustomSearch", new CustomSearchModel("MyNotifications")));
            }

            using (BroadcastService service = new BroadcastService())
            {
                csm.IncludeUserBroadCasts = true;

                List <BroadcastCustomModel> model = service.List1(pm, csm);

                int total = (model.Count < pm.Take && pm.Skip == 0) ? model.Count : service.Total1(pm, csm);

                PagingExtension paging = PagingExtension.Create(model, total, pm.Skip, pm.Take, pm.Page);

                return(PartialView("_MyNotifications", paging));
            }
        }