public IHttpActionResult Post(CreateCommentRequestModel model)
        {
            if (realEstatesServices.GetById(model.RealEstateId).FirstOrDefault() == null)
            {
                return this.NotFound();
            }

            int commentId = this.commentServices.Create(
                model.RealEstateId,
                model.Content,
                this.User.Identity.GetUserId());

            var response = this.commentServices.GetById(commentId)
                .ProjectTo<CommentResponseModel>()
                .FirstOrDefault();

            return this.Created("", response);
        }
        public IHttpActionResult Post(CreateCommentRequestModel model)
        {
            string username = this.User.Identity.Name;
            string userId = this.User.Identity.GetUserId();

            var createdComment = this.comments.CreateComment(model.RealEstateId, model.Content, username, userId);

            return this.Created
                (
                    string.Format("api/Comment/{0}", createdComment.Id),
                    Mapper.Map<CreatedCommentResponseModel>(createdComment)
                );
        }