public void AddComment(MessagesDto message) { Messages msg = new Messages(); msg.CreateDate = DateTime.Now; msg.Creator = UserDao.Load(CurrentUser.Id); msg.Comment = message.Comment; msg.PlaceId = message.PlaceId; msg.CommentPlaceType = message.PlaceTypeId; MessagesDao.SaveAndFlush(msg); }
public ActionResult AddComment(MessagesDto message) { var basebl = Ioc.Resolve<Reports.Presenters.UI.Bl.IRequestBl>(); basebl.AddComment(message); return Json("ok"); }