示例#1
0
        public Board ModBoard(Modboard model)
        {
            DynamicParameters p = new DynamicParameters();

            p.Add("@Id", model.Id);
            p.Add("@name", model.BoardName);

            Board ModedBoard = SqlMapper.Query <Board>(con, "modboard", param: p, commandType: CommandType.StoredProcedure).First();

            return(ModedBoard);
        }
 public Board ModBoard([FromBody] Modboard model)
 {
     return(this.ser.ModBoard(model));
 }
示例#3
0
 public Board ModBoard(Modboard model)
 {
     return(this.repo.ModBoard(model));
 }