public ActionResult Index(int realStateId)
        {
            ViewBag.RealStateName = _repo.GetRealStateName(realStateId);
            ViewBag.RealStateId   = realStateId;
            var comments   = _repo.GetRealStateComments(realStateId);
            var commentsVm = new List <RealStateCommentWithPersianDateViewModel>();

            foreach (var comment in comments)
            {
                var commentVm = new RealStateCommentWithPersianDateViewModel(comment);
                commentsVm.Add(commentVm);
            }
            return(View(commentsVm));
        }
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RealStateComment comment = _repo.Get(id.Value);

            if (comment == null)
            {
                return(HttpNotFound());
            }

            var commentVm = new RealStateCommentWithPersianDateViewModel(comment);

            return(PartialView(commentVm));
        }