public string CommentLogo(CommentedLogo comment) { Common.Data.Comment newComent = new Common.Data.Comment { UserID = comment.FromUserId, PhotoID = comment.ToLogoId, Content = comment.Content, CreatedDate = DateTime.Now }; _homeDA.AddComment(newComent); return("success"); }
public ActionResult Comment(CommentedLogo data) { string response = _homeBL.CommentLogo(data); return(Json(response)); }