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)); }
public Board ModBoard(Modboard model) { return(this.repo.ModBoard(model)); }