Exemple #1
0
        public ActionResult AddCommentLike(long?ApartmentCommentId)
        {
            InfoApartmentCommentResult result = new InfoApartmentCommentResult();

            ApartmentRepository.AddApartmentCommentLike((long)ApartmentCommentId, (long)user.ProfileId);
            result.Comment   = ApartmentRepository.GetApartmentComment((long)ApartmentCommentId);
            result.Apartment = ApartmentRepository.GetApartment((long)result.Comment.ApartmentId);
            result.Me        = ProfileRepository.GetProfile(user.ProfileId);
            return(PartialView("_InfoComment", result));
        }