示例#1
0
文件: BaseBl.cs 项目: andreyu/Reports
 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);
 }
示例#2
0
 public ActionResult AddComment(MessagesDto message)
 {
     var basebl = Ioc.Resolve<Reports.Presenters.UI.Bl.IRequestBl>();
     basebl.AddComment(message);
     return Json("ok");
 }