public ActionResult AddMedia(Guid id)
        {
            var checkIn = visitsSvc.GetCheckInById(id);

            ViewBag.CheckIn = checkIn;
            var visitSlug = "/visit/" + id.ToString();
            var model     = new cf.Web.Views.Media.AddViewModel()
            {
                ObjectId = checkIn.LocationID, ObjectSlug = visitSlug, ObjectName = "My visit", Title = "Visit media "
            };

            return(View(model));
        }
        public ActionResult AddMedia(Guid id, cf.Web.Views.Media.AddViewModel m)
        {
            if (ModelState.IsValid)
            {
                var ci    = visitsSvc.GetCheckInById(id);
                var media = new MediaController().SaveMediaWithTag(m);
                visitsSvc.AddMedia(ci, media);

                return(Redirect("/Visits/My?id=" + id.ToString()));
            }
            else
            {
                return(View(m));
            }
        }