示例#1
0
        public IActionResult Update(Team_Message model)
        {
            model.Createtime = DateTime.Now.ToLocalTime().ToDateTime();
            var da = new Team_Message_Da();

            da.Update(model);
            return(SuccessMessage("成功!"));
        }
示例#2
0
        public IActionResult Add(Team_Message model)
        {
            model.Createtime   = DateTime.Now.ToLocalTime().ToDateTime();
            model.Inbound_Date = DateTime.Now.ToShortDateString().ToDateTime();

            var da = new Team_Message_Da();

            da.Insert(model);
            return(SuccessMessage("添加成功!"));
        }